- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- VMS File cration Date change
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
тАО08-17-2004 08:56 PM
тАО08-17-2004 08:56 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2004 09:06 PM
тАО08-17-2004 09:06 PM
SolutionIf you COPY the file, the new verion will get today's date. (You could get it to any given date by changing the system date and time and copy the file, but I do not recommend that).
If you wish, you can then purge, and rename the newly created file to the version it originally had.
Just wondering: why would you want to do this?
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2004 09:25 PM
тАО08-17-2004 09:25 PM
Re: VMS File cration Date change
As Willem mentioned there is no a simple way to change the creation date. You can write a "relative" simple program to change the date. Look at OpenVMS Record Management Services Reference Manual how to do this. The file dates are described in the XABDAT chapter.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2004 09:30 PM
тАО08-17-2004 09:30 PM
Re: VMS File cration Date change
Have a Nice time....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2004 09:35 PM
тАО08-17-2004 09:35 PM
Re: VMS File cration Date change
http://vms.process.com/scripts/fileserv/fileserv.com?FILE
I have no idea if you can get it working on VAX/VMS V5.1 - I rather doubt it.
Apart from messing with a XABDAT, I think you can also try a CONVERT/FDL. Creating the FDL file is left as an exercise to the reader ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2004 09:54 AM
тАО08-18-2004 09:54 AM
Re: VMS File cration Date change
I doubt CONVERT will help. It will create a new file (with the current date) - so it'
ll work as COPY.
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2004 11:21 AM
тАО08-18-2004 11:21 AM
Re: VMS File cration Date change
$ dir/date=create login.com
Directory USER$TSC:[GILLINGS]
LOGIN.COM;67 28-JUL-2004 10:31:39.39
Total of 1 file.
$ mcr dfu set login.com/create=1-jan-2004
Disk and File Utilities for OpenVMS DFU I2.7
Internal Use Only!
Copyright ├В┬й 2000 COMPAQ Computer Corporation
%DFU-S-MODIFIED, File USER$TSC:[GILLINGS]LOGIN.COM;67 modified
%DFU-I-READY, SET command ready
$
$ dir/date=create login.com
Directory USER$TSC:[GILLINGS]
LOGIN.COM;67 1-JAN-2004 00:00:00.00
Total of 1 file.
Be careful! Messing with file dates can have unexpected consequences.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2004 05:38 PM
тАО08-18-2004 05:38 PM
Re: VMS File cration Date change
How about this?
-----
$ convert/fdl=login login.com login2.com
$ write sys$output f$file_attributes("login.com","cdt")
18-AUG-2004 11:31:58.96
$ write sys$output f$file_attributes("login2.com","cdt")
1-JAN-2005 11:22:33.45
$ type login.fdl
IDENT "demo to change dates in FDL"
SYSTEM
SOURCE OpenVMS
FILE
ORGANIZATION sequential
DATE
CREATION "01-JAN-2005 11:22:33.45"
RECORD
BLOCK_SPAN yes
CARRIAGE_CONTROL carriage_return
FORMAT variable
SIZE 0
$
-----
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2004 06:27 PM
тАО08-18-2004 06:27 PM
Re: VMS File cration Date change
I wasn't aware that you can actually specify a creation date - but like I said: this is like COPY does: creates a new file, you do not change the date of the original. I didn't know of the other possibilities either. (I could have thought about changing using FAB)
BTW: I can think of environments where this 'future creation' would be a nasty thing to do - and certainly if audit doesn't signal this - and I doubt it would! So take care when using this possibility...
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2004 07:58 PM
тАО08-18-2004 07:58 PM
Re: VMS File cration Date change
DATE
REVISION
but if you don't, the revision date is current date-time.
Somehow I think that this feature should be reserved to processes with (at least) SECURITY privilege. I don't think Auditors will be enthousiastic though...
Jan