- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Adding Times in a Command Procedure
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
тАО03-01-2005 06:19 AM
тАО03-01-2005 06:19 AM
I want to schedule a procedure to run fifteen minutes after the last revision date on a file. I get the revision date using F$FILE_ATTRIBUTES, and I can put in the string for fifteen minutes. The only way I can see to add these times is to convert the parts of the strings to integer and work with those and convert it back.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 07:09 AM
тАО03-01-2005 07:09 AM
SolutionExample:
$ write sys$output f$file("tmp.tmp","CDT")
22-DEC-2004 16:49:54.84
$ write sys$output f$cvtime(f$file("tmp.tmp","CDT"))
2004-12-22 16:49:54.84
$ write sys$output f$cvtime(f$file("tmp.tmp","CDT"), "absolute")
22-DEC-2004 16:49:54.84
$ write sys$output f$cvtime(f$file("tmp.tmp","CDT") + "+0 0:15:0","absolute")
22-DEC-2004 17:04:54.84
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 07:09 AM
тАО03-01-2005 07:09 AM
Re: Adding Times in a Command Procedure
The syntax would be:
$ SUBMIT filename/AFTER:"dd-mmm-yyyy:hh:mm:ss+deltadays-deltahours:deltaminutes:deltaseconds"
In other words, assuming the file was revised at 1-MAR-2005:16:00:00, and you wanted it to run 15 minutes later, the command would be:
$ SUBMIT filename/AFTER:"1-MAR-2005:16:00:00+0-0:15:00"
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 08:48 AM
тАО03-01-2005 08:48 AM
Re: Adding Times in a Command Procedure
I coded the alternative (converting to integer, . . .). It works, but is it ever UGLY!
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 08:49 AM
тАО03-01-2005 08:49 AM