Program Structure [ COBOL/HP-UX Language Reference for the Series 700 and 800 ] MPE/iX 5.0 Documentation
COBOL/HP-UX Language Reference for the Series 700 and 800
Program Structure
A COBOL program consists of four divisions:
1. Identification Division - An identification of the program.
2. Environment Division - A description of the equipment to be used
to compile and run the program.
3. Data Division - A description of the data to be processed.
4. Procedure Division - A set of procedures to specify the operations
to be performed on the data.
Each division is divided into sections which are further divided into
paragraphs, which in turn are made up of sentences.
________________________________________________________________________
|(ANS85) The Environment, Data, and Procedure Divisions can be |
|omitted. |
________________________________________________________________________
________________________________________________________________________
|(MF) The Identification Division can be omitted. |
________________________________________________________________________
Optional Division, Section and Paragraph Headings
Some of the "red-tape" statements required by the ANSI Standard COBOL
specifications are optional when using this COBOL system. It is,
however, possible to have your COBOL system output warning messages when
such statements are found to be missing by use of the "FLAG" directive
(see your COBOL System Reference). Such statements are identified as
optional in this manual by enclosing them between brackets which have
boxes around them. The symbols next to these boxes indicate the dialect
in which these features are optional.
MPE/iX 5.0 Documentation