Run date review

Starting from HCL Workload Automation for Z Version 8.6 SPE, you can use the LIST GENDAYS PIF request to generate run dates from rules. You can the use the GETDATES command to find the run dates of any individual application.

The following example shows a sample job for exporting run dates into flat files (RUNDATES):

//RUNWAPL  EXEC EQQYXJPX,
//SUBSYS=WSJC
//OPREVAL  DD DISP=SHR,DSN=ADCDMST.CZ.JCL(OPREVAL) 
//OPREVAL  DD DISP=SHR,DSN=ADCDMST.CZ.JCL(OPREVAL) 
//OMONTH   DD DISP=SHR,DSN=ADCDMST.CZ.JCL(OMONTH)
//OAPPLY   DD DISP=SHR,DSN=ADCDMST.CZ.JCL(OAPPLY)
//SYSIN    DD *
OPTIONS FIELDSEP(,)
OUTPUT GNDAY DATA(OPREVAL) FIELDS(GNDAYDATE,TAG) LABEL(NONE) 
GETDATES ADID(FD2PREVAL) FROMDATE(120101) TODATE(121231) OUTPUT(C) 
OUTPUT GNDAY DATA(OMONTH)
GETDATES ADID(FD2MONTH)  FROMDATE(120101) TODATE(121231) OUTPUT(C) 
OUTPUT GNDAY DATA(OAPPLY)
GETDATES ADID(FD2APPLY)  FROMDATE(120101) TODATE(121231) OUTPUT(C)

The RUNDATES job finds the run dates for three separate applications across the year. You can the use these files as input in the EQQWXHTM command to combine the run dates with calendar information.

The following example shows a sample job for presenting run dates in a calendar (RUNCAL):
//RUN2012  EXEC EQQYXJPX, 
//         ARGS='YEAR(2012)', 
//         CMD=EQQWXHTM,
//         SUBSYS=WSJC
//OUTHTML  DD DISP=SHR,DSN=ADCDMST.CZ.JCL(RUN2012)
//CLSDDATE DD DISP=SHR,DSN=ADCDMST.CZ.JCL(CALDATES) 
//OPREVAL  DD DISP=SHR,DSN=ADCDMST.CZ.JCL(OPREVAL) 
//OMONTH   DD DISP=SHR,DSN=ADCDMST.CZ.JCL(OMONTH) 
//OAPPLY   DD DISP=SHR,DSN=ADCDMST.CZ.JCL(OAPPLY) 
//SYSIN    DD * 
DAYS(M D W D V Z Z) TITLE(FD2 data voor 2012)
MONTHS(JANUARI FEBRUARI MAART APRIL MEI JUNI
       JULI AUGUSTUS SEPTEMBER OKTOBER NOVEMBER DECEMBER)
PROCESS(CLSDDATE,OPREVAL==green,OMONTH==blue,OAPPLY==red)
HILITE(gray-yellow) 
Because each application was exported into a separate file, you can assign a different color to each application, making it easier to spot each application that runs on specific dates in a single calendar.
Figure 1. Run dates for year 2015
The run dates for year 2015