Hi, If we don't assign length of a variable generated as a result of transtrn function the default length will be 200 bytes. As b is defined with length 7 bytes and value assigned to it through "set b=transtrn(a,substr(a,3,5),'aaaaa') " will be assumed as 200 bytes long. This will generate warning. Try this one to validate. Regards, Naeem data a; infile datalines missover; input a :$7. b $7. c $200.; datalines; 1234123 2345234 4321432 ; run; proc sql; update a set c=transtrn(a,substr(a,3,5),'aaaaa') /*set b=substr(a,1,2)||'aaaaa' */ where a is not missing; quit;
... View more