In COBOL, REXX, and other mainframe languages, you CAN set the JCL return code. The RETURN-CODE special register (in COBOL) or equivalent mechanisms allow programs to control the completion code passed back to JCL. This is fundamental for job flow control.