Substring length value
You can specify an asterisk as the second subscript value of the substring notation. This indicates that the length of the extracted string is equal to the length of the character string, less the number of characters before the starting character.
The following examples show how the substring notation can be used:
Name Operation Operand Comment
&Z SETC 'Astring'(2,3) length specified
&Y SETC 'Astring'(2,*) length not specified
&X SETC (UPPER '&Y'(3,*)) length not specified
These statements have the following effect:
&Z
contains the character value 'str
'&Y
contains the character value 'string
'&X
contains the character value 'RING
'