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
Buffers: The Modern computers are able of handling I-O operations independent of the CPU by means of the hardware termed as data channel. For illustration, if two buffers a

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

Label Records / Disk Directory: The most important information stored in the header label is what is termed as the file title. In the situation of magnetic-disk files the labe

REWRITE STATEMENT: The REWRITE statement has the format for a relative file as shown below, REWRITE record-name  [ FORM identifier ]

WRITE STATEMENT: The WRITE Statement verb releases a record in an output file. The syntax for the WRITE statement can be unlike depending on the output device and the medium us

ARITHMETIC VERBS: Most of the problems need some computations to be performed on the input or intermediate data that are numeric in nature. The Arithmetic verbs are used to pe

PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

PROGRAM FOR SCREEN SECTION:  identification division.   program- id.   environment division.   data division.   working-storage section.   01  a pic 9(2) value

Illustration of Multiply verb: (a)  MULTIPLY A BY B. In this situation the value of A & B will be multiplied and the product will be stored in B.  The decimal point locatio

Literals: The actual values can too appear in a program. These values are termed as literals. For illustration, the statement MOVE 0 TO TOTAL indicates that the value zero wil