COBOL Manual for TNS and TNS/R Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
6-1
6 Environment Division
The Environment Division is optional in a COBOL program. It has two optional
sections, the Configuration Section and the Input-Output Section.
The Configuration Section states the type of computer on which to compile the
program and the type of computer on which to run the program. This section can also:
•
Define the association between program-supplied names and system-supplied
facilities such as program switches or character sets
•
Provide for substitution of the dollar sign ($) and decimal point (.) characters
•
Adjust the character set to allow national alphabet extensions to pass the
ALPHABETIC test
The Input-Output Section includes:
•
File declarations
•
File buffer allocations
•
$RECEIVE supplementary declarations for interprocess communication
If the program does not need to describe anything previously listed and does not use
files, it does not need the Environment Division.
If the program has the Environment Division and you move the program to an HP
system from another type of system, you must change the information in the
Environment Division.
Topics:
•
Environment Division Syntax
•
Configuration Section
•
Input-Output Section