Re: newbie question on cobol syntax
- From: Howard Brazee <howard@xxxxxxxxxx>
- Date: Mon, 23 Apr 2007 09:52:55 -0600
On Mon, 23 Apr 2007 15:38:17 GMT, "William M. Klein"
<wmklein@xxxxxxxxxxxxxxxxx> wrote:
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.
Since my compiler allows such mixing - a bit of thinking is necessary
before such conversion.
Another place where CONTINUE is useful is replacing the exit command.
This facilitates the "D" in column 6 for debugging:
2000-READ-EXIT.
EXIT.
vs.
2000-READ-EXIT.
D DISPLAY "reached end of read paragraph".
CONTINUE.
My new code doesn't contain exit paragraphs, but when I maintain, I
try not to rewrite.
.
- References:
- newbie question on cobol syntax
- From: Mayer
- Re: newbie question on cobol syntax
- From: William M. Klein
- Re: newbie question on cobol syntax
- From: Howard Brazee
- Re: newbie question on cobol syntax
- From:
- Re: newbie question on cobol syntax
- From: William M. Klein
- newbie question on cobol syntax
- Prev by Date: Re: newbie question on cobol syntax
- Next by Date: Re: newbie question on cobol syntax
- Previous by thread: Re: newbie question on cobol syntax
- Next by thread: Re: newbie question on cobol syntax
- Index(es):
Relevant Pages
|