Re: interesting use of NEXT SENTENCE vs. CONTINUE



"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


.



Relevant Pages

  • Re: interesting use of NEXT SENTENCE vs. CONTINUE
    ... My point is that calling a valid extension "abuse" because it is an EXTENSION ... Standard) and some negatively. ... Standard DISALLOWS. ...
    (comp.lang.cobol)
  • Re: interesting use of NEXT SENTENCE vs. CONTINUE
    ... >> I do not understand what you are calling 'abuse'; ... Are you saying, then, that extensions beyond the standard - such as ... >'Faith' is a belief in something in spite of the evidence. ...
    (comp.lang.cobol)
  • Re: 800 Australians Protest Planned Madrassa
    ... Ophelia appoints just about ... standard, angry choirs. ... My necessary abuse won't treat before I derive it. ...
    (rec.games.roguelike.nethack)
  • Re: Mikey addresses content
    ... Aside from the rest of the standard mix of abuse and incoherence in ... his own peculiar interpretation of the language. ...
    (sci.anthropology.paleo)
  • Re: interesting use of NEXT SENTENCE vs. CONTINUE
    ... > then using it is against their wishes, as they determine the language ... > standard then it is abusing their wishes. ... certain context, it is not an *abuse* of COBOL to use it in that context, it ...
    (comp.lang.cobol)