Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

DCL date and time manipulation?

» close window

The Question is:

 
Question regarding Time Manipulation:
I am trying to create a cmd procedure that will run a program and when that
 completes, submit multiple batch jobs an hour apart, without knowing the
 current time of the first job.
 
EX:
$ run abc
$ submit a1.com/after=now
$ submit a2.com/after=now+1 hour
$ submit a3.com/after=now+2 hour
 
I've played around with f$cvtime and found the RTL function lib$add_times, but
 was not successful.
 
Any input would be appreciated.
 
Thank you in advance for your time.
 
 


The Answer is :

 
$ now = f$element(0," ",f$time()) + ":" + f$element(1," ",f$time())
$ submit login.com
$ submit login.com/after="''now'+0-1:0:0"
$ submit login.com/after="''now'+0-1:0:0"
 

answer written or last revised on ( 26-MAY-2000 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.