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



and  YYY  is the initial qualifier of the job names




can you let me know what all parameters we can give in SYSIN DD* to get the information from SAR. LIST, 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?


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,

Where to give the date in above job..