COBOL/400 Language Help


Environment Division

Description
The Environment Division is optional in a COBOL source program. It has two sections:

Here is the Environment Division format :

 ->->-ENVIRONMENT DIVISION. -*----------------------------------> 1
                           *-CONFIGURATION SECTION.----------> 2
 
1  ->----------------------------------------------------------> 3
2  ->-*---------------------------------------------*----------> 4
     *-SOURCE-COMPUTER.-*-----------------------*-*
                         *-source-computer-entry-*
 
3  ->----------------------------------------------------------> 5
4  ->-*---------------------------------------------*----------> 6
     *-OBJECT-COMPUTER.-*-----------------------*-*
                         *-object-computer-entry-*
 
5  ->----------------------------------------------*----------->
6  ->--*-----------------------------------------*-*
      *-SPECIAL-NAMES.-*---------------------*-*
                        *-special-names-entry-*
 
   ->-*--------------------------------------------------------> 7
     +
     *-INPUT-OUTPUT SECTION.FILE-CONTROL.--------------------> 8
 
7  ->----------------------------------------------------------> 9
         *---------------------*
         V                     +
8  ->-----file-control-paragraph*------------------------------>10
 
9  ->-------------------------------------------------------*--><-
10 ->-*----------------------------------------------------**
     *-I-O-CONTROL.-*-----------------------------------*-*
                    + *-----------------------------*   +
                    + V                             +   +
                    *-input-output-control-paragraph*-.-*
 


[ Top of Page | Previous Page | Next Page | Table of Contents ]