Re: COBOL ain't quite dead - yet !



On 29 Oct 2008 18:08:13 GMT, billg999@xxxxxxxxxxx (Bill Gunshannon)
wrote:

In article <747hg4965hgegcuojhe10um7ic1f5lnccg@xxxxxxx>,
Howard Brazee <howard@xxxxxxxxxx> writes:
I have seen

PERFORM AAA THRU AAA-EXIT.

AAA SECTION.
AAA-PARAGRAPH.
...
AAA-EXIT.
EXIT.


This was the norm for "Structured COBOL" ala Shelley & Cashman back when
I was taking classes in the late 70's. Most of the programming standards
I ran into required it (back when programming shops actually had standards!)

What advantage is this in either performing AAA or PERFORM
AAA-PARAGRAPH THRU AAA-EXIT?

I can't see what might be considered detrimental to it. I think it makes
the code easier for humans to read as blocks are more plainly delineated.
And the compiler probably doesn't care one way or the other. :-)

bill


The logic doesn't make sense to me. Compilers do understand it, but
it's very much like dangerous loops where performed THRU code performs
itself.

In the same way, I like XML nested syntax requirements better than
HTML nested syntax requirements. Keep the logic clean.

--
"In no part of the constitution is more wisdom to be found,
than in the clause which confides the question of war or peace
to the legislature, and not to the executive department."

- James Madison
.