Interesting question! I do not know any pros or cons for using SECTIONs as procedure names in the PROCEDURE DIVISION of your COBOL program, as opposed to using paragraph names to name your procedures. I can explain the difference; maybe that would help you? If not, ask again!
There are several reasons for using paragraphs or sections to name parts of your program. One is documentation; the other is to allow execution via PERFORM statements (or INPUT and OUTPUT PROCEDURE phrases of the SORT statement). With SECTIONs, you could execute several paragraphs contained in the section or execute individual paragraphs. I guess that would be a PRO, unless you don't want that. :-) Example:
MAIN Section. * Perform all of the code and paragraphs in SubSect Perform SubSect. * Perform only paragraphs Para1 in SubSect Perform Para1. SubSect Section. Para1. Stuff1. . . Para2. Stuff2. . . Para3. Stuff3. . . EndSect Section. GoBack
Dig Deeper on IBM system z and mainframe systems
The 50% e-Crime rise and Yahoo revelations show how right the CMS Select Committee was
The reasons the COBOL language is irrelevant -- and why Java's okay
CMS Select Committee turns Cybersecurity reporting focus from breaches to performance
If there really is a Digital Skills Crisis why are we still pussyfooting?
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.