Divisions And Sections In Cobol

A section is a collection of paragraphs.
Divisions and sections in cobol. Sections allow duplicate paragraph names otherwise paragraph names must be unique. The identification division the environment division the data division the procedure division. Sections are the logical subdivision of program logic.
A brief introduction of these divisions is given below. If using go to i d use sections. With the exception of the copy and replace statements and the end program marker the statements entries paragraphs and sections of a cobol source program are grouped into four divisions.
Each division contains a number of mandatory and optional. 01 ws student pic a 10. Fd sample file 01 file name pic x 20.
Divisions all four divisions must be present in every program in this sequence. Configuration section describe the computer. 01 ls id pic 9 5.
01 ls class pic 9 3. Relates file names used in the program to the external file names. 01 ws id pic 9 5.
All cobol statements must begin in area b. Identification division which identifies the program with a name and if you want gives other identifying information. With declaratives i d use sections.