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



To add to my quandry, GR(1) of the SAME AS clause says,

"The effect of the SAME AS clause is as though the data description identified
by data-name-1 had been coded
in place of the SAME AS clause, excluding the level-number, name, and the
EXTERNAL, GLOBAL, REDEFINES,
and SELECT WHEN clauses specified for data-name-1; level numbers of subordinate
items may be adjusted as
described in general rule 2.

NOTE This rule, in combination with the syntax rules for this clause,
prohibits direct or indirect circular reference"

I, personally, don't see how you get from the syntax rules and GR(1) to the
(informative) note under GR(1).

--
Bill Klein
wmklein <at> ix.netcom.com
"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.


--
Bill Klein
wmklein <at> ix.netcom.com



.



Relevant Pages

  • Re: SAME AS (02 Standard) Clause - and circulatiy
    ... SRof the SAME AS clause says, ... "The description of data-name-1, including its subordinate data items, ... entry or any group item to which this entry is subordinate." ... specific could then refer to the "Circular Reference" warning.) ...
    (comp.lang.cobol)
  • Re: SAME AS (02 Standard) Clause - and circulatiy
    ... "The effect of the SAME AS clause is as though the data description ... prohibits direct or indirect circular reference" ... I, personally, don't see how you get from the syntax rules and GRto ... Clearly this was trying to avoid circular references, ...
    (comp.lang.cobol)
  • Re: SAME AS (02 Standard) Clause - and circulatiy
    ... "The effect of the SAME AS clause is as though the data description ... prohibits direct or indirect circular reference" ... I, personally, don't see how you get from the syntax rules and GRto ... "The description of data-name-1, including its subordinate data items, ...
    (comp.lang.cobol)
  • Re: urgent query!!!
    ... > shall be the LAST data description clause in the record description. ... DEPENDING it's OK to have items *subordinate* to it -- thus, ... followed within that record description only by data description entries ... (page 307, 13.16.36.2, OCCURS clause, Syntax ...
    (comp.lang.cobol)
  • Re: Usage of however/but
    ... >> when connecting contrastive clauses. ... >contrast: I can say "I went to Philadelphia, ... >and grammatically it is part of the second clause. ... introduces a subordinate clause. ...
    (alt.usage.english)