Where allowed to run:
|
Parameters Examples Error messages |
The Transfer Control (TFRCTL) command calls the specified program, passes control to it, and removes the transferring program from the return stack. Because the transferring program is removed from the call stack, control does not return to it when the called program returns control. Instead, control is returned to the command following the last call to the transferring program.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
PGM | Program | Qualified object name | Required, Positional 1 |
Qualifier 1: Program | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
PARM | Parameter CL variable names | Values (up to 255 repetitions): CL variable name | Optional, Positional 2 |
Top |
Specifies the program that receives control from the program transferring control.
This is a required parameter.
Qualifier 1: Program
Qualifier 2: Library
Top |
Specifies one or more CL variables to be passed to the program that is to receive control. The variables passed can only be parameters that were passed to the program currently transferring control.
Top |
TFRCTL PGM(PROGA) PARM(&PARM1)
This command transfers control to the program PROGA and passes the parameter &PARM1 to it. The parameter &PARM1 must previously have been passed to the program issuing this command.
Top |
*ESCAPE Messages
Top |