Passing parameters using the Transfer Control command

The Transfer Control (TFRCTL) command passes parameters to the program being called.

The TFRCTL command can be used to pass parameters to the program being called in the same way the CALL command passes parameters, but with these restrictions:

In the following example, PROGA calls PROGB and passes two variables, &A and &B, to it. PROGB uses these two variables and another internally declared variable, &C. When control is transferred to PROGC, only &A and &B can be passed to PROGC. When PROGC finishes processing, control is returned to PROGA, where these variables originated.

Passing parameters using TRFCTL