📄 rfc242.txt
字号:
[Page 5]not necessarily sequential. Lock - During the course of processing data, it may be necessary tolock out use of some portion of data to other users. Seqmentation of adata set into units for locking purposes may be indicated by thenotation: k|[extent]|.Whether or not the data is locked and the type of lock applied (forexample, write protect or read/write protect) is specified at the timethe data is used. Authorization - Authorization for a user to access data may begoverned by some access code assigned to the data. This access code canbe specified in the description by modifying the desired elements of thedescription with an indication of the code. The notation is: code a |[extent ]|Control. Two modifiers are provided which govern the existence of items inthe definition. The first is the repetition modifier: factor r |[extent ]|.This causes the following item definition or item definitions (if theextent indicates more than one) to be repeated. Thus the description (3rC)is equivalent to the description (C,C,C).The other control modifier is the condition modifier: condition c |[extent ]|.If the condition specified is not true, then the following itemdefinition is ignored. The condition is specified by a Booleanexpression. Since several modifiers may apply to an item definition, there is aproblem concerning the relationship among them. For example, if arepetition modifier and a conditional modifier apply to an item, doesthe condition apply to all the repeated items, or only to the first, [Page 6]assuming the extent of the condition modifier is one? The effect ofmultiple modifiers is dependent on the order in which they areevaluated. Two possible conventions come to mind. One says thatrepetitions are expanded first, then properties applied, and finallyconditions applied to the resulting expanded item definitions,independent of the order in which the modifiers were specified in thedescription. Thus the description (A=3c [ 4 ]4rF,I)is equivalent to (4rA=3c[ 4 ]F,T),and if the condition is true, is equivalent to (F,F,F,F,I),or, if the condition is not true, is equivalent to (T).The other convention is that the modifiers are evaluated in the order inwhich they appear in the description, perhaps. in reverse order - themodifier immediately preceding an item definition is evaluated first,then the one next preceding, etc. This gives more flexibility of meaningto the mulitple modifiers. For example, the descriptions (A=3c3rC)and (3rA=3cC)are not equivalent. In the first, only the first of the threerepetitions is affected by the condition whereas in the second, ll threerepetitions are affected. Since this second convention is more flexible,it shall be the one assumed. This convention allows, for example, therepetition modifier to the applied to a named item as shown: (3rAnC).The name A applies to the three items (in effect, the name A is appliedthree times). This facility allows a name to be applied to a verticalcolumn in a two dimensioned array by, for example, the description: (3r[ 3 ]C,AnC,C) [Page 7]which given the name A to the second column of the 3x3 array.Reference Named descriptions, or parts of descriptions, that have already beendefined may be inserted into a description using the notation: $ specification.Is a description, the reference is used as an item definition of astring fo item definitions. The item definitions used are those definedby the name given. Names that apply to the named item or items as awhole in the description in which it is defined are ignored by thedescription at which is referred. However, names that apply to parts ofthe named item are carried over to the description at which it isreferred. 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 descriptionwas referenced since it applied to the referred-to item or items as awhole. Parts of a data set or description must be able to be specified foruse in a reference. This specification is in terms of the structure ofthe data set or description. The specification has the form of a dataset name, or description name, followed by modifiers which particularizeto specifications, to the part desired. The four types of modifiers arefor going down a level, going up a level, going frontwards along alevel, and going backwards. Down - To go down a level from that previously specified, themodifier has the following form: . itemor . (item |,extent| |,=value|).Having gone down a level, the item indicates which particular item atthis level is the first (or only one) desired. This may be a number or a [Page 8]name. If more than one are desired, then the extent indicates how manyitems. (* as extent means all remaining items at that level, ! meansthe first item that meets the conditions that may he get on it orsubitems in following modifiers.) The items selected may he conditionedby their contents. If a value is given, then only those items with thevalue indicated are selected. For example, A.1.1specifies the first field of the first record of data set A, A.(1*).1specified the first field of all the records of A, A.1.(1,2)specifies the first two fields of the first record of dataset A, A.(1,*).(1,="768174")specified only the first fields of all the records of A thathave 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: ' itemor ' (item |,extent| |,=value|).Going up a level specifies the item up one level that contains the itempreviously specified. The item indicates which particular item at thislevel is desired where the containing item is considered the first. Forexample, A.(1,!).(1,=768174")'1 [Page 9]specifies the first record whose first field has value "768174". Forward. - To go forward on the same level as that previouslyspecified, the modifier is as follows: + itemor + (item |,extent| |,=value|).This modifier is useful when an item following the one which has acertain value in a field is desired. It may also be used when the dataset name is really a pointer, into the data set, which has beet setpreviously. Pointers may or may net be described in a section elsewhere.Backward. - To go backward on the same level as that previouslyspecified, the modifier has the following form: - itemor - (item |,extent| |,=value|).An example of the use of this modifier is when an item preceding the onewhich has a certain value in a field is desired. This might bespecified: 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 ] [Page 10]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -