Re: newbie question on cobol syntax
- From: Richard <riplin@xxxxxxxxxxxx>
- Date: 23 Apr 2007 12:23:37 -0700
On Apr 24, 3:58 am, Howard Brazee <how...@xxxxxxxxxx> wrote:
On Mon, 23 Apr 2007 15:34:58 GMT, "William M. Klein"
<wmkl...@xxxxxxxxxxxxxxxxx> wrote:
As most people (but not all) agre, "mixing" next sentence with scope delimiters
is NOT a good thing to do.
I've heard of, but haven't come across code that used "next sentence"
to work as "exit paragraph".
paragraph-a.
if my-account = "zzzz"
next sentence
end-if
perform a
perform b
perform c
.
paragraph-b.
I don't care for this myself. CoBOL should be clear and should avoid
"tricks" wherever possible.
It does. That is, the Cobol standard does avoid such tricks and
specifies that the above does not comply. It is only some vendors that
allow such tricks.
Actually another 'trick' with MF is to put an OLDNEXTSENTENCE
directive in the site defaults then the above 'trick' fails to work
causing much confusion and hilarity.
.
- Follow-Ups:
- Re: newbie question on cobol syntax
- From: LX-i
- Re: newbie question on cobol syntax
- 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: William M. Klein
- Re: newbie question on cobol syntax
- From: Howard Brazee
- 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
|