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:
Program-n
is the program name that is recognized by the debugger, and other external tools inquiring the program name.- The
COMMON
clause indicates that the program can only be used in a nested program. - The
INITIAL
clause indicates that all file connectors and data elements are set to their initial state when the program is activated. - The
RECURSIVE
clause indicates that the program may call itself while it is activated.