Passing control to another program or procedure
To pass control to another program or procedure, you can select different options.
Using the Call Program command to pass control
The
Call Program (CALL)
command calls a program named on the command and passes control to it.
Using the Call Bound Procedure command to pass control
The
Call Bound Procedure (CALLPRC)
command calls a procedure named on the command, and passes control to it.
Using the Return command to pass control
The
Return (RETURN)
command in a CL procedure or original program model (OPM) program removes that procedure or OPM program from the call stack.
Parent topic:
Controlling flow and communicating between programs and procedures