Reference modification defines a data item by specifying a leftmost character and optional length for the data item.
___ Format _____________________________________________________________ | | | >>__ _data-name-1_________________________________________ __________> | | |_FUNCTION__function-name-1__ ______________________ _| | | | <____________ | | | |_(____argument-1_|__)_| | | | | >__(__leftmost-character-position:__ ________ __)___________________>< | | |_length_| | | | |________________________________________________________________________|
The sum of leftmost-character-position and length minus the value one must be less than or equal to the number of characters in data-name-1. If length is omitted, than the length used will be equal to the number of characters in data-name-1 plus one minus
Unless otherwise specified, reference modification is allowed anywhere an identifier referencing an alphanumeric data item is permitted.
Each character of data-name-1 is assigned an ordinal number incrementing by one from the leftmost position to the rightmost position. The leftmost position is assigned the ordinal number one. If the data description entry for data-name-1 contains a SIGN IS SEPARATE clause, the sign position is assigned an ordinal number within that data item.
If data-name-1 is described as numeric, numeric-edited, alphabetic, or alphanumeric-edited, it is operated upon for purposes of reference modification as if it were redefined as an alphanumeric data item of the same size as the data item referenced by data-name-1.
Reference modification creates a unique data item which is a subset of data-name-1 or by function-name-1 and its arguments, if any. This unique data item is considered an elementary data item without the JUSTIFIED clause.
When a function is reference-modified, the unique data item has the class and category of alphanumeric. When data-name-1 is reference-modified, the unique data item has the same class and category as that defined for the data item referenced by data-name-1; however, if the category of data-name-1 is numeric, numeric-edited, or alphanumeric-edited, the unique data item has the class and category alphanumeric.
If length is not specified, the unique data item created extends from and includes the character identified by leftmost-character-position up to and including the rightmost character of the data item referenced by data-name-1.
Subtopics:
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.