Powered By Blogger

Wednesday, March 16, 2011

COBOL-1



The Identification Division

The function of the Identification Division is to provide a place for general
documentation about the program, such as the name of the program and the
name of the programmer.
000020 PROGRAM-ID. MORTGAGE.
000030 AUTHOR. Mastering-COBOL.
The PROGRAM-ID paragraph contains the name of the program and is required in
every program. The
AUTHOR paragraph contains any comment the programmer
wishes to make; however, it usually contains the programmer’s name. The
AUTHOR paragraph is optional; in fact, this paragraph is obsolete in COBOL-85.

The Environment Division

The Environment Division provides a place for entries that have to do with the
world outside the program. In particular, it lists the files the program uses.


The Data Division

The Data Division provides the place where the program’s variables are stored.
It is divided into different sections for different types of data: file data (File Section),
static data (Working-Storage Section), parameters (Linkage Section), and others.

The Procedure Division

The last division is the Procedure Division, which contains the procedural statements
that make up the program.

No comments: