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
PROGRAM FOR INVENTORY  We have to write a program to update the inventory file. Consider 2 files,viz, invfile an tranfile. Invfile has 3 fields pno,name,qty. Tranfile has 3 fil

Evaluate is like a case statement & Evaluate  stamenet can be used to replace nested Ifs. The difference b/w EVALUATE and case is that there is no 'break' is required for EVALUATE

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

Currency Sign - edit characters for numeric data: $ (Currency Sign): The single currency sign can appear at the leftmost place of a picture. In that situation the $ cha

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe


Identification Division: The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the mac

STATEMENTS FOR SEQUENTIAL FILES: A basic operation on a file includes the reading and writing of its records. Whenever the file is sequential, there are three verbs for the

Example of constructing an arithmetic expression: An arithmetic expression may be proceeded by a + or - sign. These operations are known as unary + or unary - operators. Il

Illustration of indexed tables: Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are de