Search This Blog

Saturday, July 30, 2011

COBOL Section

COBOL Section
Every COBOL prograni is divided into four divisiors. Every division is divided into sections. Sections may be divided into paragraphs and each pragraph may be divided into sentences. Every sentence may be divided into statements. Statements is divided into words.
Programà Divisions a Sections a Parigraphs a Sentences a Statements àWords
All division names, section names and paragraph names are started from margin A and others are started
from margin B. Margin A is from 8 to II columns and margin B is from 12 to 72 columns. Each COBOL
program should start with the division header, i.e., IDENTIFICATION Division. A COBOL suurce program always contains four divisions in the following order:
1. Identification Division
2. Environment Division
3. Data Division
4. Procedure Division
We cannot change the sequence of these divisions. They should be written in same order.
Environernnt Division has two sections:
1. CONFIGURATION SECTION
2. INPUT-OUTPUT SECTION

No comments:

Post a Comment