When the UNSTRING statement is initiated, data is transferred from the sending field to the current data receiving field, according to the following rules:
Stage 1: Examine
If the POINTER phrase is not specified, the sending field character-string is examined, beginning with the leftmost character.
If the DELIMITED BY phrase is not specified, the number of characters examined is equal to the size of the current data receiving field, which depends on its data category, as shown in Table 41 in topic 6.2.21.6.
Table 50. Characters examined when DELIMITED BY is not specified | |
IF the receiving field is... |
THEN the number of characters examined is... |
---|---|
alphanumeric or alphabetic |
equal to the number of characters in the current receiving field |
numeric |
equal to the number of characters in integer portion of the current receiving field |
described with the SIGN IS SEPARATE clause |
1 less than the size of the current receiving field |
described as a variable-length data item |
determined by the size of the current receiving field at the beginning of the UNSTRING operation |
If the DELIMITED BY phrase is not specified, the sending field is further examined, beginning with the first character to the right of the last character examined.
Subtopics:
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.