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
RELATIVE FILES: The Files that are stored on a direct access storage medium like magnetic disk are frequently known as direct access files. The COBOL supports three different

PROCEDURE DIVISION statements for the relative files: The statements OPEN, CLOSE, READ, WRITE and REWRITE that are available for sequential files are also available for the re

Block Size: The normal practice is to group a number of consecutive records to form that is termed as a block or a physical record. The number of records in a block is frequen

WRITE Statement:      The WRITE statement for a relative file has the format which is as shown below.          WRITE  record-name   [ FORM   identifier ]

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

Group Item as Operand in the Relational Condition: Whenever an operand of a relational condition is the group item, the item is then considered to be an alphanumeric field. Th

ON SIZE ERROR OPTION:   If after an arithmetic expression, the result exceeds the highest value which can be accommodated in the result; this error is termed as size error. T

Example of If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

REWRITE STATEMENT: As in the situation of a relative file, the REWRITE statement needs that the file should be opened in the I-O mode, and if the SEQENTIAL access mode is spec

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if