Why does COBOL have both `SECTION` and `PARAGRAPH`?

后端 未结 9 1221
一向
一向 2021-02-18 16:23

Why does COBOL have both SECTION and PARAGRAPH?

Can anybody explain why the designers of COBOL created both SECTIONs and PAR

9条回答
  •  执念已碎
    2021-02-18 16:48

    A section can have several paragraphs in it. When you PERFORM a section, it executes all the paragraphs in the section. Within the section you can use PERFORM or GOTO to branch to the paragraphs within the section.

提交回复
热议问题