Pass control
This presents different options for passing control to a procedure.
Use the CALL command
The
Call Program (CALL)
command calls a program named on the command, and passes control to it.
Use the CALLPRC command
The
Call Bound Procedure (CALLPRC)
command calls a procedure named on the command, and passes control to it.
Use the RETURN command
The
Return (RETURN)
command in a CL procedure or OPM program removes that procedure or OPM program from the call stack.
Parent topic:
Control flow and communicate between programs and procedures