A CHAIN verb performs these steps:
- Any USING parameters are first copied to a safe place. These are made available to the chained program through the CHAINING phrase of the Procedure Division header.
- All active programs are made inactive.
- A CANCEL ALL is implicitly executed.
- A new program is loaded using the same rules that apply to the CALL verb. This becomes the main program of the new run unit.
See the entry for CHAIN Statement in Procedure Division Statements for more information.