Command reference / CL
RETURN
Return
Returns control to the next higher call stack entry, or to the subsystem monitor that controls the job. Outside a CL program it does the same as F3: it returns from the most recent QCMD invocation to the outside program manager. In a CL program it returns to the command or statement after the call that invoked the program. At the highest invocation level of the routing step, it ends the routing step. If entered interactively at that level during a controlled end caused by ENDSBS, ENDSYS, or PWRDWNSYS, end-of-job processing occurs unless the user answers an inquiry message to return to the command entry display.
Allowed environments: *INTERACT, *BPGM, *IPGM, *IREXX.
Positional parameters: 0.
Parameters
No parameters.
Examples
RETURN
Returns control as described above. The command takes no parameters.
Generated from os/cl/catalog/RETURN.json and os/cl/help/RETURN.json.