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.
$ 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