Multiple choice technology mainframe

How can I set the return code of JCL from my program

  1. using the RETURN-CODE variable in program

  2. passing as an ouput from program

  3. cannot set the return code

  4. Using the SET-CODE statement in program

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

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.