TIME - Workload Automation Programming Language internal time
When using the equal sign (=) to represent a DATE
or
TIME
within Workload Automation Programming Language, by default the date and
time when Workload Automation Programming Language started is
used. Workload Automation Programming Language maintains a
static internal time to allow you to generate multiple statements with a "current time" that is
consistent across all statements, regardless of whether the time changes during run
time.
OPTIONS TIME
allows you to set an explicit
current TIME
to be used instead of the equal
sign (=) or any other function that requires the current time within Workload Automation Programming Language.
The format of the time must be hhmm.
IA
of 0701241600:OPTIONS DATE(070124) TIME(1600)
INSERT CPOC ADID(MYAPPL1) IA(=)
INSERT CPOC ADID(MYAPPL2) IA(=)
INSERT CPOC ADID(MYAPPL3) IA(=)
INSERT CPOC ADID(MYAPPL4) IA(=)
INSERT CPOC ADID(MYAPPL5) IA(=)
INSERT CPOC ADID(MYAPPL6) IA(=)
You can also use OPTIONS TIME
to set the
internal Workload Automation Programming Language date
to be relative to the current date.
For example, OPTIONS DATE(+60)
sets the
time that Workload Automation Programming Language will
use as 60 minutes ahead of its current setting.
OPTIONS DATE(-5)
sets the date that Workload Automation Programming Language will
use as 5 minutes behind its current setting.
You can reset the internal Workload Automation Programming Languagedate
and time to the current date and time by using OPTIONS
TIME(RESET)
.