How to forecast jobs in ESP for certain dates.
Release : All Releases
Component : ESP WORKLOAD AUTOMATION
Steps to produce a scheduled workload report.
Generate Report of Scheduled Workload: To generate a scheduled-activity report to list the scheduled workload for a time period in the future. This will generate online and hardcopy reports about scheduled jobs, links, tasks, and manual jobs. The reports provide a variety of job statistics that indicate processing requirements. The data the report generates uses average execution results from tracked jobs to provide a true picture of what you can expect during the next scheduled occurrence of the jobs.
Generate Report of Scheduled Workload
Create SADGEN DSN: The SADGEN command generates a data set, which is used in the creation of 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.
LSAR Command: The LSAR command extracts data from a scheduled activity data set to produce a standard scheduled activity report.
SAMPLE JOB: Note 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