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,
// MSGCLASS=Y,NOTIFY=&SYSUID
//DELETE EXEC PGM=IEFBR14
//DD01 DD DSN=USERID.DATASET,
// DISP=(MOD,DELETE),UNIT=SYSDA
//*
//STEP1 EXEC PGM=SARBCH
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//REPORT DD DSN=USERID.DATASET,
// DISP=(,CATLG,DELETE),UNIT=SYSDA
//SYSIN DD *
/DBASE NAME=XXX.XXXXXXX
/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
Comments
Anonymous
Thu, 12/16/2010 - 05:39
Permalink
Doubt
Hi,
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?
Anonymous
Sat, 01/08/2011 - 09:21
Permalink
Help Required
Hi,
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 .
briefly...
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,
Anonymous
Wed, 01/09/2013 - 03:16
Permalink
Hi,
Where to give the date in above job..