Setting a program to an initial state
Use the INITIAL clause in the PROGRAM-ID paragraph
to specify that whenever a program is called, that program and any nested programs that it contains are to be placed
in their initial state.
About this task
When a program is set to its initial state:
- Data items that have
VALUEclauses are set to the specified values. - Changed
GO TOstatements andPERFORMstatements are in their initial states. - Non-
EXTERNALfiles are closed.