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 VALUE clauses are set to the specified values.
  • Changed GO TO statements and PERFORM statements are in their initial states.
  • Non-EXTERNAL files are closed.

Related references  
INITIAL