Re: SAME AS ('02 Standard) Clause - and circulatiy





"William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx> wrote in message
news:Q6oBi.4946$i91.105@xxxxxxxxxxxxxxxxxxxxxxxxx
I was going to respond to Pete's question about circularity of reference
with the answer that this was explicitly prohibited. I can see that there
was an (elementary) attempt to do so, but I would be interested in the
input of those (like Roger and Karl) who have actually worked with it.

SR(3) of the SAME AS clause says,

"The description of data-name-1, including its subordinate data items,
shall not contain a SAME AS clause that references the subject of the
entry or any group item to which this entry is subordinate."

Clearly (to me) this was trying to avoid circular references, but I don't
THINK that it (or any other obvious to me place) prohibits (the
impossible).

01 AAA Same as BBB.
01 BBB Same as CCC.
01 CCC Same as AAA.

Does anyone see where (how) this is prohibited? I certainly THOUGHT that
we dealt with it when developing the Standard, but I don't see where. I
think that SR(3) was supposed to have some sort of "directly or
indirectly" in it - that isn't there in the final text.


Rather than making a specific staement in every place where it might arise,
I would have thought a simple concise GENERAL statement would do it. (Each
specific could then refer to the "Circular Reference" warning.) The trouble
with doing it for every specifc instance is that the wording then becomes
inconsistent.

"The description of data-name-1, including its subordinate data items,
shall not contain a SAME AS clause that references the subject of the
entry or any group item to which this entry is subordinate."
(33 words)

"If you use a SAME AS clause, there must not be any subordinate SAME AS
clauses that would cause a circular reference back to it."
(25 words - a 25% improvement with no loss of meaning, and much more easily
assimilable for most people.)

Has anybody noticed how "dry" and legalistic the wording of this standard
is? Insurance companies, Banks, and even the Legal profession itself, have
all benefited greatly from the campaign for simple English.

Pete.
--
"I used to write COBOL...now I can do anything."


.



Relevant Pages

  • Re: SAME AS (02 Standard) Clause - and circulatiy
    ... "The effect of the SAME AS clause is as though the data description identified ... prohibits direct or indirect circular reference" ... I, personally, don't see how you get from the syntax rules and GRto the ... "The description of data-name-1, including its subordinate data items, shall ...
    (comp.lang.cobol)
  • Re: File declarations in the Environment and Data division
    ... ENVIRONMENT DIVISION. ... SELECT FileA ASSIGN "FileA.dat" ... I'm assuming the fact that the "FileA" in the SELECT clause of the ... entry in the FILE section is significant (as opposed to ...
    (comp.lang.cobol)
  • Re: Creating a dialogBox dynamically...
    ... One could also argue that, in many cases, an END-~ clause and _nothing_ ... """In some cases the delimited scope statement with which an explicit ... The ENTRY statement is not a label and thus does not terminate the ... UnicodeText section, ...
    (comp.lang.cobol)
  • Hardware Interrupts
    ... Has anyone here read "Ada Concurrent Programming" by Narain Gehani? ... entry DONE; ... getequipment.adb:8:13: address clause can only be given for imported ...
    (comp.lang.ada)
  • Full text search and Nullable column in query
    ... find matching rows for the TEXT clause, and then go through the NUMBER ... entries of these rows to extract those satisfying the NUMBER clause. ... the NUMBER entry is null, and only a few where the NUMBER entry is not ... that is not a standard SQL database concept. ...
    (comp.databases)