Re: interesting use of NEXT SENTENCE vs. CONTINUE



>The "Standard" also disallows GoBack

As far as I can tell the standard never mentions GOBACK (until '02 when
it allows it).

> NEXT SENTENCE (with END-IF)

Is _explicitly_ disallowed.

Perhaps you cannot tell the difference between between never mentioning
something and specifying it is not to be used.

.



Relevant Pages

  • OLDNEXTSENTENCE (was: Infinite Loops and Explicit Exits
    ... "I think that you have justified the standard in making this illegal. ... you are correct that this "mistake" (and Micro Focus was not the only ... >> It makes a significant difference whether that END-IF is there. ... > PECD is correct for what his compiler usually does with NEXT SENTENCE. ...
    (comp.lang.cobol)
  • Re: Avoiding Logic Error?
    ... > SENTENCE within a sentence containing END-IF? ... In '85 standard COBOL, in a *sentence* containing nested or compound IFs, ...
    (comp.lang.cobol)
  • Re: Postive and Negative requirements (was: interesting use of NEXT SENTENCE vs. CONTINUE
    ... Standard) that NEXT SENTENCE may not be used WHEN IMMEDIATELY followed by END-IF ... "An END-IF phrase at the same level of nesting" ... > not explicitly disallow it, and I understand that the committee have ...
    (comp.lang.cobol)
  • Re: newbie question on cobol syntax
    ... The Standard doesn't allow a NEXT SENTENCE with an END-IF (at the same level, ... a number of vendors allow this (as a ... to work as "exit paragraph". ...
    (comp.lang.cobol)
  • Re: interesting use of NEXT SENTENCE vs. CONTINUE
    ... >> I do not understand what you are calling 'abuse'; ... > standard specifically disallows it. ... I understand that having a NEXT SENTENCE in the *same* IF as an END-IF (or ...
    (comp.lang.cobol)