Re: newbie question on cobol syntax



Actually,
If you have code that compiled with "FCOBOL" - or even with OS/VS COBOL and
you NOW are using the newer (IBM) compilers, then changing every NEXT SENTENCE
to CONTINUE should never change the logic flow.

The only time that there is a "difference in logic flow" is when you MIX old
COBOL (with NEXT SENTENCE) *with* scope terminators (END-IF or whatever).
Therefore, if you are worried about "base of code" BUT are using newer compiler,
then feel "safe" in changing NEXT SENTENCE to CONTINUE.

Of course as "your - not my - sainted mother" is reported to have said <G> such
changes are rarely requested by those who sign your paychecks.

--
Bill Klein
wmklein <at> ix.netcom.com
<docdwarf@xxxxxxxxx> wrote in message news:f0ijf7$9ig$1@xxxxxxxxxxxxxxxxxxxx
In article <1hhp23lrbejcmn16429hp0pthh40pmn5fn@xxxxxxx>,
Howard Brazee <howard@xxxxxxxxxx> wrote:

[snip]

I see no advantage in ever using NEXT SENTENCE now that CONTINUE is
available.

I'm not sure how you intend 'using' to be interpreted here, Mr Brazee...
but I've run across a bit of the 'installed base' that requires NEXT
SENTENCE to be compiled and executed in the same manner as it was when the
code was first written in FCOBOL.

DD



.



Relevant Pages

  • Re: newbie question on cobol syntax
    ... you NOW are using the newer compilers, ... The only time that there is a "difference in logic flow" is when you MIX old ... I've felt safe about things which the Testing Crew grew a bit... ... Increasing the number of code changes, or so I have seen, ...
    (comp.lang.cobol)
  • Re: Heres one problem
    ... When the IBM PC came out in 1982, I knew it WAS The One. ... MSDOS version 1 didn't support hard disks well. ... Cobol and Basic compilers, so there were always at least 4. ...
    (comp.lang.cobol)
  • Re: If you were inventing CoBOL...
    ... > IBM mainframe culture, and compilers that mimic IBM's memory model. ... That's not what memory management is for. ...
    (comp.lang.cobol)
  • Re: IBM S/390 memory model amd COBOL
    ... I wasn't surprised at the table overflow. ... that on IBM it lets you overwrite executable code and not just user-mode ... > works with IBM. ... > It doesn't even "work" with the newer compilers... ...
    (comp.lang.cobol)
  • Re: P390
    ... ADCD is still OK except for initial z/OS.e load. ... COBOL, PL/I, and FORTRAN compilers are not eligible. ... Serving IBM Japan and IBM Asia-Pacific ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)