GETDATES – Generate a list of run dates from a run cycle rule
Use the GETDATES command to generate
the run dates for an entire set of run cycles within an application,
or a particular input arrival subset. To produce the list of run dates,
the command uses the LIST GENDAYS and MERGE commands
internally.
GETDATES ADID(<application>) [TYPE(A|G)]
[STATUS(A|P)]
[VALID(<valid-on>)] [IAT(hhmm]
[FROMDATE(<from>)] [TODATE(<to>)] [SAVELIST(<pfx>)]
[OUTPUT(ALL|COMBINED|INDIVIDUAL)]where: <application>- The name of the application for which to generate the run dates.
By default, the command assumes the ACTIVE version of this, as an
APPLICATION definition only, that is valid on the day the command
runs.
TYPEcan be used to look for GROUP definitions andSTATUScan be used to calculate dates for PENDING versions. <valid-on>- The date used to find the version of the application. By default, it uses the current date.
hhmm- The input arrival time to select matching run cycles to calculate the run dates from. For applications that might have multiple runs within one day, this allows a specific single run to be calculated. If omitted, the run dates for all run cycles are calculated.
<from>- The date from which the run dates are calculated, in the format
YYMMDD. The default is the current date. <to>- The date until which the run dates are calculated, in the format
YYMMDD. The default is theFROMDATEvalue plus 90 days. <pfx>- The name of the
SAVELISTto be produced, containing the combined run dates for all run cycles. This is also used as a prefix of internally generatedSAVELISTfor run cycle. It is required thatSAVELISTentries are generated to enable internal use of theMERGEcommand to calculate the composite effect of all run cycles.
Output can be in the form of a SAVELIST and
optionally output files if an OUTPUT GNDAY statement
has been coded ahead of the command. The SAVELIST output
can be used to generate interval dates within Periods using the PRSTART
DATELIST keyword.
The amount of output can be influenced by the
OUTPUT keyword,
which can have the following values:ALL- Generates
SAVELISTand optionally file output for each individual run cycles and the combined result for all of the run cycles. COMBINED- Only generate
SAVELISTand optional file output for the combined result for all of the run cycles. INDIVIDUAL- Only generate
SAVLISTand optional file output for each individual run cycle. Do not generate any combined output.
Note:
- For run cycles using the EVERY or UNTIL, only the initial Input
Arrival time is used to select the run cycle with the
IATkeyword. - Run cycle level
SAVELISToutput is named using theSAVELISTprefix followed by_cccc, whereccccis the run cycle sequence number. - For run cycles of type N and X, a rule definition is automatically
generated internally, therefore the
LIST GENDAYScommand can calculate offsets of a period, for exampleONLY(1) DAY(DAY) PERIOD(MYDATES). Period based run cycles can generate more offsets than a rule definition can support (11 positive and 11 negative). In these instances, multiple rules are generated until all of the period offsets have been accounted for. The run cycleSAVELISTname will be suffixed with_cccc_iiii, whereccccis the run cycle sequence number andiiiiis the instance number of the multiple rules generated for the single run cycle. - For the limitations related to
FROMDATEandTODATE, see LIST GENDAYS – Generate dates from a rule. - The
LIST GENDAYSPIF call uses the same internal HCL Workload Automation for Z code that is used to generate the dates for GENDAYS in ISPF. - The
GETDATEScommand is available only starting from HCL Workload Automation for Z V8.6 SPE, or later.