Friday, September 4, 2009

The PROGRAM-ID Paragraph

The PROGRAM-ID Paragraph
Syntax
Format
PROGRAM-ID. program-name.

Description
The PROGRAM-ID paragraph is used to document the name of the COBOL program. The program name must be a valid identifier. PROGRAM-ID is in Area A followed by a period and the program name is in Area B followed by a period.
Tips
1. This is the only paragraph that is required in the IDENTIFICATION DIVISION.
2. Although the program name must follow the rules for identifiers, the name provided is frequently used by the operating system, so there may be additional restrictions on the name depending on the computer system involved.