What is the difference between performing a SECTION and a PARAGRAPH?
Here’s the difference in performing a Section and a Paragraph in COBOL
PARAGRAPH | SECTION |
---|---|
It is just a block of code containing one or more sentences. | This is a block of code that contains one or more paragraphs. |
It begins with a paragraph name and ends with the starting of the next paragraph. | It begins with a section name and ends with the starting of another section. |
This can be ended in another way by another section starting or by the end of the program. | It cannot be ended another way. |
All the paragraphs should code in AREA A. | All Sections should also code in AREA A. |
Syntax: Paragraph-name. | Syntax: {Section-name} SECTION. |
BY Best Interview Question ON 06 May 2020