The value of any REXX variable can be a string of characters. To select a part of a string, you can use the SUBSTR( ) function. SUBSTR is an abbreviation for substring. The first three arguments are:
o
S = 'reveal'SAY substr(S,2,3) /* Says 'eve'. Beginning with the second */ /* character, takes three characters. */ SAY substr(S,3,4) /* Says 'veal'. Beginning with the third */ /* character, takes four characters. */