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
Example of Class condition: Let the BASIC-PAY be a data name in the card record defined with picture 9(5) V99. By reading the card we can test the value of the BASIC-PAY to ma

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

Example of compound condition: In common, a compound condition has the form which is as shown below: Where condition-1 & condition-2 can be any one of the below:

IF STATEMENT: The easiest form of the IF statement is  IF condition-1 statement-1 where the condition-1 may be any one from the shown below. When the condition-1

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.

Comparison of Numeric Operands: We are well-known with the kind of the relational condition where both the operands are numeric. The comparison in this situation is algebraic

DIVIDE VERB: The aim of the DIVIDE verb is to divide one number by the other and to store the result.  There are few forms of this verb. One of its forms is as shown below:

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

Object-Computer - Configuration section: The computer name specifies a specific computer on which the object program is to be executed. The MEMORY SIZE is used to show the

WRITE statement: The WRITE statement for tape and sequential-disk files has the syntax shown below. WRITE            record-name      [  FROM    identifier   ] As a resu