vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Not sure this is the efficient way, but this works
Find out in which mainframe image the SAR database resides and access it via batch.
With the SAR details determine if the job has run using REXX.
Digging SMF records will also be equally interesting.
U can access the individual SAR reports in batch via GEN and SEQ parameter.
Or u can also access them like a GDG, through relative reference. -1,-2,-3 like that.
In our shop we use the below JCL to extract SAR details.
The program SARBCH might be different in your shop.
The SYSIN has the control cards for the specific job.
Code: |
//UNLOAD EXEC PGM=SARBCH,PARM='SAR.SARI01'
//SYSPRINT DD SYSOUT=*,DCB=BLKSIZE=133
//REPORT DD SYSOUT=*,DCB=BLKSIZE=133
//SARLOAD DD DSN=XK89.BORED.PROGRAMR,DISP=OLD
//SYSIN DD *
/LOAD ID=DLEN-AU20
/* |
From the extract you can do the processing. |
|