- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Stop Version Numbers on a file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 12:46 PM
тАО11-10-2008 12:46 PM
Stop Version Numbers on a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 01:21 PM
тАО11-10-2008 01:21 PM
Re: Stop Version Numbers on a file
After you modify the file, just run the
@SYS$MANAGER:RESET_VERSION_NUMBERS MYFILE.EXT
and it should reset the version number back to 1.
$ dir
Directory
MYFILE.EXT;1
Total of 1 file.
$ ren myfile.ext;1 myfile.ext;2
$ dir
Directory
MYFILE.EXT;2
Total of 1 file.
$ @sys$manager:reset_version_numbers myfile.ext
$ dir
Directory ECP$MANAGER_ROOT:[MANAGER.CALHOUN.TEST]
MYFILE.EXT;1
Total of 1 file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 01:49 PM
тАО11-10-2008 01:49 PM
Re: Stop Version Numbers on a file
file.ext;32767
But rather more seriously, what might you be up to here?
There are ways to deal with version numbers and to roll version numbers back down (contiguously) and to access existing file versions, but an incrementing version number is an inherent and long-standing and default behavior of OpenVMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 01:52 PM
тАО11-10-2008 01:52 PM
Re: Stop Version Numbers on a file
Obviously, if one specifies the version number explicitly it does not increment.
Although, in that case, all of the uses of the file must be compatible (e.g., CREATE will be unhappy).
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 01:53 PM
тАО11-10-2008 01:53 PM
Re: Stop Version Numbers on a file
$ dir sys$manager:reset_version_numbers.com
%DIRECT-W-NOFILES, no files found
$
That (error) is from an OpenVMS Alpha V8.3 box.
The following is the contiguous version RENAME sequence of the following two RENAME commands:
$ RENAME filename.ext;* TEMPORARY.TMP;
$ RENAME TEMPORARY.TMP;* filename.ext;
And that sequence is also in the OpenVMS FAQ, and also discussed elsewhere around the network.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 02:12 PM
тАО11-10-2008 02:12 PM
Re: Stop Version Numbers on a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 03:09 PM
тАО11-10-2008 03:09 PM
Re: Stop Version Numbers on a file
> periodically copy the version to 1. I may
> try to see if FTP can specify a version
> number.
In general, FTP clients and servers tend to
do what you tell them to do. You may need to
quote a file spec which looks foreign to the
system where you're specifying it. (Like,
for example, something with a semicolon in
it.)
It's not clear to me from your description
what your actual problem is. You seem to
like version 1 better than others, but that
doesn't tell me much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 03:32 PM
тАО11-10-2008 03:32 PM
Re: Stop Version Numbers on a file
So what's wrong with versions other than ;1 here?
Too much disk space for the other files?
Does the OpenVMS tool tip over frequently or with severe consequences? (Or fails to delete lower versions? Or goes down for eons? Or...) Does the tool not delete all earlier versions? (I can see the potential for file lock issues, too, which might well be part of the reason that the OpenVMS process is unstable.)
Or does the OpenVMS server sees the extra bits of the version number as too much extra rotating mass and the disks then implode into a black hole, sucking the rest of the building in after them?
Is ftp appropriate? (Which could include some consideration of other protocols, other file or disk access approaches, and other filenames. Alternatives could include NFS, SMTP mail, IP pipes, http, etc.)
The OpenVMS file version scheme being little more than a primitive version control system, after all.
Would it make more sense to run some secondary DCL that cleans up if the primary DCL is down and the files are older than some interval? An approach which could be considered belt and suspenders, or a longer chain of hackery, depending on how you look at it. Or passing over files with particular names? Or emailing over files?
This discussion can go in many directions. And like a gamma burst from around a singularity, there are some places you don't want to be standing when things go wrong. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 11:24 PM
тАО11-10-2008 11:24 PM
Re: Stop Version Numbers on a file
You can force a single vesrion if you have all those files in one directory:
$ SET DIRECTORY/VERSION_LIMIT=1
and next forget about version numbers. The only thing you need to do is keep track of the numbers: if you add files, the version number will increase. Once it reaches 32767, adding a new file will fail:
%
-RMS-E-CRE, ACP file create failed
-SYSTEM-W-BADFILEVER, bad file version number
so you'll have to rename that file to version ;1.
and of course, this could be automated using a batchjob.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 07:28 AM
тАО11-11-2008 07:28 AM
Re: Stop Version Numbers on a file
Having implemented more than a few FTP-based file passing applications (in both directions to/from OpenVMS), there should not be a problem if the file version is left to the default, which is the next higher version when creating a file and the highest version when reading a file.
I have also found a few applications that do incorrect things when reading through directories, which does cause a problem if not handled correctly.
There are the usual dangers of prescribing over the phone (sic).
- Bob Gezelter, http://www.rlgsc.com