Certain IBM® programs produce standard return codes. For example, a compiler or linkage editor returns a code of 8 to indicate serious errors in the compiled or link-edited program; the program may not execute correctly. Before executing a newly compiled or link-edited program, test the return code from the compiler or linkage editor; if it is 8, bypass execution of the program.
//RCTEST IF (STEP1.RC = 10) THEN
//STEP3 EXEC
//IFNOT ELSE
// ENDIF
//NEXTSTEP EXEC