Job to Extract Abend info from SAR
Mainframe Job to Extract Abend info from SAR
This is very useful Job if you wish to pull out data data from SAR for Jobs that completed with an exception.
//ABENDINF JOB (ACC INFO,,,,,XXXX),' ',CLASS=M,
//DELETE EXEC PGM=IEFBR14
//DD01 DD DSN=USERID.DATASET,
//STEP1 EXEC PGM=SARBCH
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//REPORT DD DSN=USERID.DATASET,
//SYSIN DD *
/LIST ID=YYY* EXCP=Y
Where XXX.XXXXXXX is the name of SAR database. The SAR database for your installation can be found in the main SAR panel where you see the following text
PRIMARY SELECTION FOR XXX.XXXXXXX
and YYY is the initial qualifier of the job names
Thu, 12/16/2010 - 05:39
can you let me know what all parameters we can give in SYSIN DD* to get the information from SAR. LIST, EXCP=y...is there any date parameters that we can give to filter the abended jobs for a particular date? where can i find the information for this?
Sat, 01/08/2011 - 09:21
I am able to extract the spool data (JESMSGLG) to a PS file by subbing the above job.
How to extract the dynamically every days abend information and i need to omit the previous days data .
My ultimate goal is .If i submit a job,it should extract current day's multiple jobs of JESMSGLG data alone and need to find abend information and need to extract an abend information to a file.
Please help me here.It is very important to me.
Many Thanks in advance !!!!!!!!!!!!!
Thanks and Regards,
Wed, 01/09/2013 - 03:16
Where to give the date in above job..