Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: "William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx>
- Date: Sat, 04 Jun 2005 04:33:41 GMT
"Richard" <riplin@xxxxxxxxxxxx> wrote in message
news:1117851012.574197.212860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> I do not understand what you are calling 'abuse'; a NEXT SENTENCE, in my
>> experience, does what the Standards say it should do and what every
>> textbook I have ever read say it should do.
>
> A NEXT SENTENCE in the same IF as an END-IF is abuse because the
> standard specifically disallows it.
>
The "Standard" also disallows GoBack - and if you asked (IBM) mainframe people
to "give that up" because it was "abuse" - you would be in REAL trouble.
Also, COMP-5 (and COMP-3 and COMP-4) are all "abuse" by this definition.
So is POINTER (in the '85 Standard) and "SET ADDRESS OF" a data-item WITHOUT the
"BASED" clause.
So is REDEFINES of the "non-original" data item.
So is CALL using of a "group-item" that isn't an 01-level (until the '02
Standard).
Should I go on?
***
I understand the "claim" that many (possibly even MOST) COBOLprogrammers don't
understand the difference between a CONTINUE and a NEXT SENTENCE. Furthermore,
I understand that having a NEXT SENTENCE in the *same* IF as an END-IF (or
SEARCH with END-SEARCH) may not be portable.
HOWEVER, for shops that "suipport" both NEXT SENTENCE (with END-IF) and
CONTINUE, the difference IS "well understood" - and maintainable.
--
Bill Klein
wmklein <at> ix.netcom.com
.
- Follow-Ups:
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Howard Brazee
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Richard
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- References:
- interesting use of NEXT SENTENCE vs. CONTINUE
- From: Frank Swarbrick
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Richard
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: docdwarf
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Richard
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: docdwarf
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Richard
- interesting use of NEXT SENTENCE vs. CONTINUE
- Prev by Date: Re: RANDOM vs. DYNAMIC on indexed output file
- Next by Date: Re: interesting use of NEXT SENTENCE vs. CONTINUE
- Previous by thread: Re: interesting use of NEXT SENTENCE vs. CONTINUE
- Next by thread: Re: interesting use of NEXT SENTENCE vs. CONTINUE
- Index(es):
Relevant Pages
|