Re: newbie question on cobol syntax
- From: "William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Apr 2007 03:12:47 GMT
The Standard doesn't allow a NEXT SENTENCE with an END-IF (at the same level, so
this is "non-Standard". However, a number of vendors allow this (as a
documented extension).
--
Bill Klein
wmklein <at> ix.netcom.com
"LX-i" <lxi0007@xxxxxxxxxxxx> wrote in message
news:I76dnQUjPPpo9LDbnZ2dnUVZ_sTinZ2d@xxxxxxxxxxxxxx
Richard wrote:
On Apr 24, 3:58 am, Howard Brazee <how...@xxxxxxxxxx> wrote:
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.
I was thinking that it was forbidden per the standard. I guess I haven't been
out of the scene for that long... :)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ / \ / ~ Live from Albuquerque, NM! ~
~ / \/ o ~ ~
~ / /\ - | ~ daniel@thebelowdomain ~
~ _____ / \ | ~ http://www.djs-consulting.com ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~
~ h---- r+++ z++++ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Who is more irrational? A man who believes in a God he doesn't see, or a man
who's offended by a God he doesn't believe in?" - Brad Stine
.
- 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
- Re: newbie question on cobol syntax
- From: Richard
- Re: newbie question on cobol syntax
- From: LX-i
- newbie question on cobol syntax
- Prev by Date: Re: newbie question on cobol syntax
- Next by Date: PLUG: txt2pdf 9.4
- Previous by thread: Re: newbie question on cobol syntax
- Next by thread: Re: newbie question on cobol syntax
- Index(es):
Relevant Pages
|
|