In SAS, when a character variable is created using a function like SUBSTR(), the variable's length is determined by the length of the source string literal, not the length of the result. SUBSTR('joshi anand',1,3) extracts 'joh' but the variable 'a' gets length 11 (length of 'joshi anand'). This is because SAS determines variable lengths at compilation time from the source expression.