COBOL Manual for TNS and TNS/R Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
5-1
5 Identification Division
The Identification Division is required in a COBOL program. It has one required
paragraph (PROGRAM-ID, which specifies the program name), and five optional
paragraphs (which specify your name, the date, and the program purpose). The
compiler handles the optional paragraphs as comments, except for the DATE-
COMPILED paragraph, whose presence causes the compiler to report the compilation
time and date in the listing.
Topics:
•
Identification Division Syntax
•
PROGRAM-ID Paragraph
•
DATE-COMPILED Paragraph
Identification Division Syntax
IDENTIFICATION DIVISION.
is the division header. It must begin in area A, have a space in the indicator field,
and be completely contained on a single program text line.
If the order of the paragraphs differs from that shown, the compiler prints a warning
message. If any paragraph is repeated, the compiler prints an error message.
.
DIVISIONIDENTIFICATION
PROGRAM-ID paragraph
«AUTHOR paragraph»
«INSTALLATION paragraph»
«DATE-WRITTEN paragraph»
«DATE-COMPILED paragraph»
«SECURITY paragraph»
VST010.vsd