Testing for an abend completion code

To execute a step based on the evaluation of an abend completion code, code:
   //IFABEND    IF    (ABENDCC=S0C4)   THEN
   //ABNDSTEP   EXEC  PGM=CLEANUP
   //           ENDIF
   //NEXTSTEP   EXEC  

The system executes the program CLEANUP when a previous step has the system abend completion code 0C4.