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



I see - from your expansion (using the GR), the expanded text violates the SR.
Therefore, this circularity IS prohibited by the current rules (even if it isn't
totally "obvious" - to me - but possibly it is obvious to others).

--
Bill Klein
wmklein <at> ix.netcom.com
"Rick Smith" <ricksmith@xxxxxxx> wrote in message
news:13dc6aj9nnt2h21@xxxxxxxxxxxxxxxxxxxxx

"William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx> wrote in message
news:JkoBi.214751$sR4.61918@xxxxxxxxxxxxxxxxxxxxxxxxx
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.

The above is effectively,

01 AAA.
02 BBB.
03 CCC same as AAA.

01 BBB.
02 CCC.
03 AAA same as BBB.

01 CCC.
02 AAA.
03 BBB same as CCC.

Thus all three data-description-entries have cicular references.





.



Relevant Pages

  • 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: 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: Circular ref in master projects - Continued
    ... independent files that just happen to be in 1 x master file so that I can ... After sorting 1 x circular reference - another one doesn't just pop up. ... If you truly eliminate one circular relationship and another pops up, ...
    (microsoft.public.project)
  • 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: Circular ref in master projects - Continued
    ... we will keep working through the plans to ensure the circular refs ... independent files that just happen to be in 1 x master file so that I can ... After sorting 1 x circular reference - another one doesn't just pop up. ...
    (microsoft.public.project)