When you use the SUBSTR function on the left side of an assignment statement, SAS places the value of argument with the expression on right side. SUBSTR replaces n characters starting at the character ...
is a character string or a text expression. If argument might contain a special character or mnemonic operator, listed below, use %QSUBSTR. is an integer or an expression (text, logical, or arithmetic ...