Re: SAME AS ('02 Standard) Clause - and circulatiy
- From: "William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 00:39:05 GMT
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
.
- Follow-Ups:
- Re: SAME AS ('02 Standard) Clause - and circulatiy
- From: Rick Smith
- Re: SAME AS ('02 Standard) Clause - and circulatiy
- References:
- SAME AS ('02 Standard) Clause - and circulatiy
- From: William M. Klein
- SAME AS ('02 Standard) Clause - and circulatiy
- Prev by Date: Re: CONSTANT ENTRY (was "forward" references (was: COBOL subscript range checking))
- Next by Date: Re: SAME AS ('02 Standard) Clause - and circulatiy
- Previous by thread: SAME AS ('02 Standard) Clause - and circulatiy
- Next by thread: Re: SAME AS ('02 Standard) Clause - and circulatiy
- Index(es):
Relevant Pages
|