Reference
Named descriptions, or parts of descriptions, that have already been defined may be inserted into a description using the notation:
$ specification.
Is a description, the reference is used as an item definition of a string fo item definitions. The item definitions used are those defined by the name given. Names that apply to the named item or items as a whole in the description in which it is defined are ignored by the description at which is referred. However, names that apply to parts of the named item are carried over to the description at which it is referred. For example the description
(An(F,F),I,$A)
is equivalent to
(An(F,F),T,(F,F)).
Notice that the name "A" was not carried over to where the description was referenced since it applied to the referred-to item or items as a whole.
Parts of a data set or description must be able to be specified for use in a reference. This specification is in terms of the structure of the data set or description. The specification has the form of a data set name, or description name, followed by modifiers which particularize to specifications, to the part desired. The four types of modifiers are for going down a level, going up a level, going frontwards along a level, and going backwards.
Down - To go down a level from that previously specified, the modifier has the following form:
. item
or
. (item |,extent| |,=value|).
Having gone down a level, the item indicates which particular item at this level is the first (or only one) desired. This may be a number or a name. If more than one are desired, then the extent indicates how many items. (* as extent means all remaining items at that level, ! means the first item that meets the conditions that may he get on it or subitems in following modifiers.) The items selected may he conditioned by their contents. If a value is given, then only those items with the value indicated are selected. For example,
A.1.1
specifies the first field of the first record of data set A,
A.(1*).1
specified the first field of all the records of A,
A.1.(1,2)
specifies the first two fields of the first record of data set A,
A.(1,*).(1,="768174")
specified only the first fields of all the records of A that have value "768174", and
A.(1,!)-(1,="768174")
finds the first field that has value "768174".
Up- To go up a level from that previously specified, the modifier has the following form:
' item
or
' (item |,extent| |,=value|).
Going up a level specifies the item up one level that contains the item previously specified. The item indicates which particular item at this level is desired where the containing item is considered the first. For example,
A.(1,!).(1,=768174")'1
specifies the first record whose first field has value "768174".
Forward. - To go forward on the same level as that previously specified, the modifier is as follows:
+ item
or
+ (item |,extent| |,=value|).
This modifier is useful when an item following the one which has a certain value in a field is desired. It may also be used when the data set name is really a pointer, into the data set, which has beet set previously. Pointers may or may net be described in a section elsewhere.
Backward. - To go backward on the same level as that previously specified, the modifier has the following form:
- item
or
- (item |,extent| |,=value|).
An example of the use of this modifier is when an item preceding the one which has a certain value in a field is desired. This might be specified:
A.(1,!).(2,="768174")'1-1
[ This RFC was put into machine readable form for entry ]
[ into the online RFC archives Gottfried Janik 9/97 ]