HP 3000 Manuals

Environment Division [ 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

Environment Division 

General Description 

The Environment Division specifies a standard method of expressing those
aspects of a data processing problem that are dependent upon the physical
characteristics of a specific computer.  This division allows
specification of the configuration of the source computer and the object
computer.  In addition, information relating to input-output control,
special hardware characteristics and control techniques can be given.

The Environment Division must be included in every COBOL source program.

Organization 

Two sections make up the Environment Division; the Configuration Section
and the Input-Output Section.

The Configuration Section deals with the characteristics of the source
computer and the object computer.  This section is divided into three
paragraphs; the SOURCE-COMPUTER paragraph, which describes the computer
configuration on which the intermediate code is produced; the
OBJECT-COMPUTER paragraph, which describes the computer configuration on
which the object (intermediate code) program is to be run; and the
SPECIAL-NAMES paragraph, which relates the implementation-names used by
your COBOL system to the mnemonic-names used in the source program.

The Input-Output Section deals with the information needed to control
transmission and handling of data between external media and the object
program.  This section is divided into two paragraphs; the FILE-CONTROL
paragraph, which names and associates the files with external media; and
the I-O-CONTROL paragraph, which defines special control techniques to be
used in the object program.

Structure 

The following is the general format of the sections and paragraphs in the
Environment Division, and defines the order of presentation in the source
program.

General Format 
________________________________________________________________________
|(OSVS) These sections can appear in any order.                        |
________________________________________________________________________

            

[]


MPE/iX 5.0 Documentation