In SAS, when a character variable is created without an explicit LENGTH statement and assigned from a function like SUBSTR, it inherits the length of the SOURCE string (11 characters for 'joshi anand'), not the length of the substring result (3 characters). The variable 'a' has length 11.