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