Skip to content

Identification Division

The IDENTIFICATION Division describes the name, and type of program.

General Format:

       { IDENTIFICATON } DIVISION. 
       { ID            } 
       [ PROGRAM-ID. Program-n     [ IS {INITIAL   } PROGRAM ] . ] 
                                        {COMMON    } 
                                        {RECURSIVE }

Syntax:

  • Program-n is a program name, which may be expressed as a data element, literal, or data returned from a function call.
  • COMMON may only be used in a nested program.

General Rules:

  1. Program-n is the program name that is recognized by the debugger, and other external tools inquiring the program name.
  2. The COMMON clause indicates that the program can only be used in a nested program.
  3. The INITIAL clause indicates that all file connectors and data elements are set to their initial state when the program is activated.
  4. The RECURSIVE clause indicates that the program may call itself while it is activated.
Back to top