How to run History Report using input from archived data sets
search cancel

How to run History Report using input from archived data sets

book

Article ID: 52268

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How do you code history report to read from the archived data sets.    

Environment

 

Resolution

Below are two examples coding your History Report using INPUT command to read from archived data set.

Example#1 - Read from one archived data set.

//STEP1 EXEC ESP,PARM='SUBSYS(ESPx)'
//SYSPRINT  DD   SYSOUT=*
//SYSIN         DD *
REPORT
SETWIDTH 133
INPUT DATASET('YourArchived.History.dsn')
DISPLAY JOBNAME AGENT JOBNO EXECSDATE EXECST ENDDATE ENDT CMPC;
SORT EXECSDATE EXECST
ENDR
/*
//      

Example#2 - Code INPUT FILE(ddname) where ddname refers to a DD statement, allowing concatenation of multiple archived history data sets

//STEP1     EXEC PGM=ESP,PARM='SUBSYS(ESPx)'            
//STEPLIB   DD   DSN=ESP.SSCPLINK,DISP=SHR     
//SYSPRINT  DD   SYSOUT=*    
//ARCHDS    DD   DSN=YourArchived.History.dsn1,DISP=SHR     
//          DD   DSN=YourArchived.History.dsn2,DISP=SHR              
//SYSIN     DD   *                            
REPORT
SETWIDTH 133                                          
INPUT FILE(ARCHDS)  
DISPLAY JOBNAME AGENT JOBNO EXECSDATE EXECST ENDDATE ENDT CMPC;
SORT EXECSDATE EXECST                        
ENDR
/*
//