IBM Extension
IBM Extension
AND CONTINUE RUN UNIT Phrase
If control reaches an EXIT PROGRAM statement with the continue phrase in the main program, control passes to the CALL statement of the calling program. In a named activation group:
- The activation group remains active
- The main program is left in its last used state, except that the ends of the ranges of all PERFORM statements executed by that called program are considered to have been reached.
However, in a *NEW activation group when a main program returns control to the caller, the activation group is ended. The activation group will close all files scoped to the activation group. Any pending commit operation scoped to the activation group will be implicitly committed. All resources allocated to the activation group will be returned back to the system. As a result of the activation group ending, all programs that were active in the activation group are placed in their initial state.
End of IBM Extension