IDENTIFICATION DIVISION

The IDENTIFICATION DIVISION must be the first division in each COBOL source program, factory definition, object definition, method definition, Start of changeand function definitionEnd of change. The identification division names the program, class, or method and identifies the factory definition, object definition, Start of changeor function definitionEnd of change. The IDENTIFICATION DIVISION can include the date a program, class, method, Start of changeor functionEnd of change was written, the date of compilation, and other such documentary information.

Program IDENTIFICATION DIVISION
For a program, the first paragraph of the IDENTIFICATION DIVISION must be the PROGRAM-ID paragraph. The other paragraphs are optional and can appear in any order.

For details, see PROGRAM-ID paragraph.

Class IDENTIFICATION DIVISION
For a class, the first paragraph of the IDENTIFICATION DIVISION must be the CLASS-ID paragraph. The other paragraphs are optional and can appear in any order.

For details, see CLASS-ID paragraph.

Factory IDENTIFICATION DIVISION
A factory IDENTIFICATION DIVISION contains only a factory paragraph header.

For details, see FACTORY paragraph.

Object IDENTIFICATION DIVISION
An object IDENTIFICATION DIVISION contains only an object paragraph header.

For details, see OBJECT paragraph.

Method IDENTIFICATION DIVISION
For a method, the first paragraph of the IDENTIFICATION DIVISION must be the METHOD-ID paragraph. The other paragraphs are optional and can appear in any order.

For details, see METHOD-ID paragraph.

Start of changeFunction IDENTIFICATION DIVISIONEnd of change
Start of changeStart of changeFor a user-defined function or function prototype, the first paragraph of the IDENTIFICATION DIVISION must be the FUNCTION-ID paragraph. The other paragraphs are optional and can appear in any order.End of change

For details, see FUNCTION-ID paragraph.

End of change