Relative date and variables
To produce relative dates, can use the equal sign (=),
plus sign (+), or minus sign (–)
in the DATE, TIME,
and RANGE keywords.
By default, the date and time is the current date and time when
the command is processed. However, you can change this value to be
relative to the Input Arrival time of the job running the commands
by using the OPTIONS statement and set the Workload Automation Programming Language internal DATE and TIME to
match the variables containing the running job's input arrival details.
For example, to
NOP a job the day before
the input arrival date of the running job use the following command:VARSUB SCAN
OPTIONS DATE(!OYMD1.) TIME(!OHHMM)
NOP JOB(MYJOB) WSNAME(CPU1) DATE(-1)Note:
DATE, TIME,
and RANGE refer to the Application Input Arrival
time of the operation being targeted, not to the Operation Input Arrival
time.