Re: newbie question on cobol syntax



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
.



Relevant Pages

  • Re: In the News: Tenn. AG: No constitutional concerns with
    ... I do not deny that you have ... I would never need God as an answer. ... You have your paragraph in front of you. ... And this is evidence for what? ...
    (talk.origins)
  • Re: Is Cobol obsolete?
    ... That the main practitioners or the language all consider such ... Besides, we already debated upper/lower case, full-stops on every zero-nesting-level statement vs. one per paragraph, sections vs. nested subprograms vs. only paragraphs, etc. Got a new topic? ... 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?" ...
    (comp.lang.cobol)
  • Re: Report on HF wrench quality
    ... Yesterday I received a reply from some HF customer service twit whom God ... had obviously blessed with boobs instead of brains. ... paragraph telling me that they couldn't find my original order for the ...
    (rec.crafts.metalworking)
  • Re: 72 Dolphins Still Not Ready...
    ... Good God, that's pathetic. ... They all need to get lives. ... Yeah. ... I like that last paragraph: ...
    (alt.sports.football.pro.ne-patriots)
  • A question or two
    ... I wish my answer could contain more context; but the moderators allow me only a paragraph or two. ... You are aware of course that God has caused to be revealed that there are ... I am not certain that is an accurate statement given "He doeth what He ...
    (soc.religion.bahai)