COBOL/400 Language Help


Identification Division

Description
The Identification Division must be the first division in every COBOL source program. It names the program and may include the date the program was written, the date of compilation, and other such documentary information about the program.

The Identification Division must begin with the words IDENTIFICATION DIVISION or ID DIVISION followed by a separator period.

The first paragraph of the Identification Division must be the PROGRAM-ID paragraph. The other paragraphs are optional, but when written, must appear in the order shown in the format.

->->--*--IDENTIFICATION DIVISION. --*-------------------->
    *--ID DIVISION. --------------*
 
->-PROGRAM-ID. program-name.---------------------------->
 
->----*---------------------------------*--------------->
     *--AUTHOR. ----*----------------*-*
                    + *-------------*+
                    + V             ++
                    *-comment-entry-**
 
->----*-------------------------------------*----------->
     *-INSTALLATION. --*----------------*--*
                       + *-------------*+
                       + V             ++
                       *-comment-entry-**
 
 
->----*-------------------------------------*----------->
     *-DATE-WRITTEN. --*----------------*--*
                       + *-------------*+
                       + V             ++
                       *-comment-entry-**
 
->---*---------------------------------------*---------->
    *--DATE-COMPILED. --*-----------------*-*
                        +  *-------------*+
                        +  V             ++
                        *--comment-entry-**
 
->---*----------------------------------*---------------><-
    *--SECURITY. --*-----------------*-*
                   +  *-------------*+
                   +  V             ++
                   *--comment-entry-**


[ Top of Page | Previous Page | Next Page | Table of Contents ]