A scheduled workload report (forecast report) can show what jobs are scheduled to run on a specific day.
Here are the steps to produce the scheduled workload report:
1. Create a SADGEN DSN: The SADGEN command generates a dataset used to create scheduled activity reports. It must be executed through the ESP WORKLOAD AUTOMATION subsystem started task procedure, with a special parm (PARM='SAR' or PARM='SAD'). This command is available only in batch mode.
2. Run the LSAR Command: The LSAR command extracts data from a scheduled activity data set to produce a standard scheduled activity report.
Sample job: Note that instead of using the real ESP STC proc, create a separate one. In this example proc ESPSAD is created.
//STEP1B EXEC ESPSAD,PARM='SAD'
//STEPLIB DD DISP=SHR,DSN=ESP.CD7YLOAD
//SAD1 DD DSN=ESP.SADGEN,DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(15,5),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SADGEN DATASET(SAD1) -
FROM('00:00 JUL16 2021') TO('23:59 JUL18 2021') -
THRESH(01)
//*
//STEP2 EXEC PGM=ESP,PARM='SUBSYS(esp)',REGION=4M
//STEPLIB DD DISP=SHR,DSN=ESP.CD7YLOAD
//SYSPRINT DD SYSOUT=*
//*SYSPRINT DD DSN=ESP.FORECAST,
//* DISP=(NEW,CATLG,DELETE),
//* SPACE=(CYL,(1,1),RLSE),UNIT=SYSDA,
//* DCB=(DSORG=PS,RECFM=FB,LRECL=132)
//SYSIN DD *
LSAR DSN('ESP.SADGEN') FROM('00:00 JUL16 2021') -
TO('23:59 JUL18 2021') TIMESEQ