A brief introduction is given below about structure of COBOL program–
it is a block of code, usually containing one or more sections, that starts where the division name is encountered and ends with the beginning of the next division or with the end of the program text.
- Sections are the logical subdivision of program logic. A section is a collection of paragraphs.
- Paragraphs are the subdivision of a section or division. It is either a user-defined or a predefined name followed by a period, and consists of zero or more sentences/entries.
- Sentences are the combination of one or more statements. Sentences appear only in the Procedure division. A sentence must end with a period.
- Statements are meaningful COBOL statements that perform some processing.