Re: Code problems with Perform Thru Exit causes fall through



On Fri, 27 Jul 2007 19:44:16 GMT, spambait@xxxxxxxxxx (Doug Miller)
wrote:

Being lazy and not wanting to do this type of checking I avoid all
need for it by using code that never requires it. ie No SECTIONs, no
GOTO, no THRU, no EXIT PERFORM/PARAGRAPH/SECTION, no NEXT SENTENCE.

Agree completely.

Me too.

Scope terminators have completely removed the need for NEXT
SENTENCE. And anybody who uses SECTIONs in the Procedure Division should be
shot.

Please don't shoot me. I have to use IDMS copy statements that were
coded with sections. Back when SORT required statements I started
having a.

REST-OF-THE-PROGRAM SECTION.

I still use that when adding paragraphs to programs with sections.


Besides the problems mentioned in the previous message, I am irritated
with the following code:
PERFORM MY-SECTION THRU MY-SECTION-EXIT.
MY-SECTION.
MY-PROGRAM.
....
MY-SECTION-EXIT.
EXIT.

.