Technical data

1
Program Organization and Structure
The fundamental elements of the COBOL language are described in the current
ANSI standard and the HP COBOL basic documentation set. The elements
specific to database programming have been collected and concentrated in this
optional book for the convenience of programmers who write COBOL database
programs.
1.1 Program Structure
Figure 1–1 shows the basic structure of a COBOL program, which is organized in
divisions, sections, paragraphs, sentences, and entries.
Figure 1–1 Structure of a COBOL Program
IDENTIFICATION DIVISION.
PROGRAM-ID. program-name.
AUTHOR.
INSTALLATION.
DATE-WRITTEN.
DATE-COMPILED.
SECURITY.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER.
OBJECT-COMPUTER.
SPECIAL-NAMES.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
I-O-CONTROL.
(continued on next page)
Program Organization and Structure 1–1