Sorry to disagree, Marc, but in 25 years of COBOL programming, I have seen SECTIONs rarely PEFORMED, and they are being used less and less. As a consultant, I've been in a LOT of shops, so I'm basing my comments not on a few installations. I find it true not only in IBM COBOL, but DEC, NCR, Burroughs and mini/micro.
Sections can certainly be abused with GOTOs, even more than paragraphs ... you can go back and forth in the section with GO TO, as well as going ouside the section.
If you are adopting standards, prohibit the use of GO TO. (Many shops do this, and their are tools to enforce it.) I have finally been convinced that if you make it a shop standard, you can do away with the EXIT paragraph, if ALL performs are only one paragraph, and there are no GOTOs.
By the way, the new standard introduduces several new EXIT statements:
EXIT PERFORM
EXIT PERFORM CYCLE
EXIT PARAGRAPH
EXIT SECTION.
They are ALL disguised GO TO statements! Prohibit them all! They will make your code unstructured!
The complete draft can be downloaded from
Stephen J Spiro
ANSI COBOL Standards Committee
Check it out at