2.1
SPECIFICATION OF
ENVIRONMENT
DIVISION
60229400
ENVIRONMENT DIVISION
2
The Environment Division describes aspects of a COBOL program that depend
on the physical characteristics of a specific computer. This division must be
rewritten and the entire source program recompiled when the object program
is to be run on different computers.
The Environment Division specifies the configuration of the compiling com-
puter and the object computer. In addition, information relating to input-
output control, special hardware characteristics, and control techniques can be
specified. The information in the Environment Division is specified in hvo
sections: The Configuration Section specifies the characteristics of the
source computer and the object computer. The Input-Output Section specifies
the information needed to control transmission and handling of data between
external devices and the object program.
ENVIRONMENT DIVISION.
CONFIG URATION SE CTION.
SOURCE-COMPUTER. source-computer entry.
OBJECT-COMPUTER. object-computer entry.
[SPECIAL-NAMES. special-names entry.]
r
INPUT -OUTPUT SE CTION.
]
[FILE-CONTROL. file-control entry.]
[I
-O-CONTROL. input-output-control entry.]
The Environment Division must begin with the header: ENVIRONMENT
DIVISION followed by a period and a space.
2-1
Need help?
Do you have a question about the 3300 and is the answer not in the manual?