Environment division - cobol programming, COBOL Programming

Environment Division:

The Environment Division is the second division in the COBOL source program. It is mainly machine-dependent . The computer and all the peripheral devices needed by the program are elaborated in this division.

This division contains 2 sections:

1) Configuration Section and

2) Input-Output Section.

Out of these two the Configuration Section appears at the beginning. The outline of the sections and the paragraphs are shown below.

ENVIRONMENT DIVISION.

CONFIGURATION SECTION.

SOURCE-COMPUTER. source-computer-entry.

OBJECT-COMPUTER. object-computer-entry.

[SPECIAL NAMES. special-computer-entry].

INPUT-OUTPUT SECTION.

FILE CONTROL. {file-control-entry}....

[I-O-CONTROL. input-output-control-entry].

For most of the compilers the COBOL source program should at least include the two section headings and the three paragraphs-SOURCE-COMPUTER, OBJECT-COMPUTER and the FILE-CONTROL.

The division headings, section headings and the paragraph headings must be coded as Margin A entries. The paragraph headings should be followed by a space and then a period. The entries in the paragraphs are Margin B entries and can start in similar line with the paragraph heading.

Posted Date: 10/16/2012 3:36:09 AM | Location : United States







Related Discussions:- Environment division - cobol programming, Assignment Help, Ask Question on Environment division - cobol programming, Get Answer, Expert's Help, Environment division - cobol programming Discussions

Write discussion on Environment division - cobol programming
Your posts are moderated
Related Questions
Edit Characters for Numeric Data: The characters below can be used in the PICTURE clause to indicate the editing.   Z    *  $  -    +    CR    DB    .    ,    B    O    /

PROGRAM FOR ADD VERB: We have to write a simple program to elaborate the ADD verb. You can also use edit characters in the program. Identification division. Program- id.

Comparing features of oracle rdbms with Mysql

What is the difference between subscript and index

CLOSE STATEMENT: When the processing of a file is completed, then the file may be closed. This is completed with the help of the CLOSE-verb. The form of the CLOSE statement is

Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

Example of Move corresponding: Consider the DATA DIVISION entries shown below. Suppose it is needed that the data stored in the 4 fields of the PAY_REC should be

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

PROGRAM FOR SCREEN SECTION WITH FILES: identification division.   program- id.   environment division.          input-output section.   file-control.     select

What is the difference b/w index and subscript? Subscript indicates to the array occurrence whereas index is the displacement (in no of bytes) from the beginning of the array.