Not updating pages

We have moved on .So not posting new material. Material on site will be kept for you.Hope we helped!!!

Wednesday, May 23, 2012

Explain SECTIONS and PARAGRAPHS in various DIVISIONS of a COBOL program?

Explain SECTIONS and PARAGRAPHS in various DIVISIONS of a COBOL program?

PARAGRAPH: Set of one or more COBOL sentences making up a logical processing entity and preceded by a paragraph header or name. There are two SECTIONS in DATA DIVISION of COBOL programming.

The FILE SECTION, as the name indicates, is used to describe the format of data in all the files, whether input or output files. This section is optional. If the program is not using any file, this section can be skipped. It must have entries for all the files being used. The WORK1NG section on the other hand is used to define the data fields required over and above the ones defined in the FILE SECTION. These may be required to store some intermediate working values or some constants used in the program.

No comments:

Post a Comment