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 ...
specifies a numeric expression that is the length of the substring to extract. Tip: If you omit n, SAS extracts the remainder of the expression.