- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Commands to convert text to date and then add on o...
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
тАО06-03-2007 09:15 PM
тАО06-03-2007 09:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2007 09:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2007 09:28 PM
тАО06-03-2007 09:28 PM
Re: Commands to convert text to date and then add on one day?
$ write sys$output f$cvtime("20-may-2007+01-00","absolute")
Kind Regards
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2007 10:02 PM
тАО06-03-2007 10:02 PM
Re: Commands to convert text to date and then add on one day?
Though you do not say, I presume that the actual date is contained in a lexical symbol (e.g., CURRENT_DATE).
In that case you will need to use the DCL symbolic substitution facility together with the lexical function F$CVTIME, to wit:
$ X = "21-MAY-2007"
$ Y = F$CVTIME("''X'+1-00", "ABSOLUTE", "DATE")
$ SHOW SYMBOL Y
Y = "21-MAY-2007"
I also recommend that you review the documentation on F$CVTIME in either (or both) the online HELP text and the DCL Dictionary (in the documentation kit; available via http://www.hp.com/go/openvms ).
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2007 11:13 PM
тАО06-03-2007 11:13 PM
Re: Commands to convert text to date and then add on one day?
try the following
write sys$output f$cvtime("20-may-2007+1-","absolute","date")
This should solve your problem
The above did indeed solve the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2007 11:20 PM
тАО06-03-2007 11:20 PM
Re: Commands to convert text to date and then add on one day?
nice to hear, that it solved your problem.
It would also be nice if you would assign points to the people which helps you to solve your problems. In your forum profile we can see, the following:
I have assigned points to 1 of 29 responses to my questions.
Regards
Geni