How to create a report that shows the complete run schedules of the next day.
Component: ESP WORKLOAD AUTOMATION
Release: 12.0
To show the run schedule of the next day, use the SADGEN with LSAR.
1. SADGEN creates a scheduled activity reports data set.
2. LSAR displays the data from the SADGEN data set.
Sample SADGEN/LSAR batch job:
//JOB STATEMENT
//*
//*== ALLOCATE SADGEN DATA SET
//*
//ALLOC EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//MYMAP DD DSN=hlq.SADGEN,
// DISP=(,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(40,20)),
// DCB=(DSORG=PS,RECFM=VBS,LRECL=32756,BLKSIZE=27998)
//*
//*== SADGEN MUST EXECUTE AGAINST THE ESP STARTED TASK
//*
//MAPGEN EXEC ESPSAD,PARM='SAD'
//STEPLIB DD DSN=hlq.CD7YLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SADGEN DATASET('hlq.SADGEN') LEVEL(-) -
FROM('11:59PM TODAY') TO('11:59PM TOMORROW')
//*
//*== LSAR DISPLAYS DATA
//*
//LSAR EXEC PGM=ESP,REGION=4000K,PARM='SUBSYS(ESPx)'
//STEPLIB DD DSN=hlq.CD7YLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LSAR DSN('hlq.SADGEN') TIMESEQ
/*
SYS1.PROCLIB(ESPSAD):
//ESPSAD PROC PREFIX=<your hlq>
//$$$$$$@ EXEC PGM=CYBJS000,
// REGION=0M,
// TIME=1440,
// DYNAMNBR=200
//STEPLIB DD DSN=&PREFIX..CD7YLOAD,DISP=SHR
//ESPCOLD DD DSN=&PREFIX..PARMLIB(M1$COLD),DISP=SHR
//ESPPARM DD DSN=&PREFIX..PARMLIB(M1$PARM),DISP=SHR
//ESPWARM DD DSN=&PREFIX..PARMLIB(M1$WARM),DISP=SHR
//SYSTCPD DD DSN=<your tcpip dsn>,DISP=SHR
// PEND
SADGEN Command: Create Data Set for Reports
LSAR Command: List Scheduled Activity Report
To produce a report with all the jobs (and their dependencies) defined to ESP, use MAPGEN and JOBMAP commands.