If you want to create VarFinally based on the values in VAR1,VAR3 and VAR4 and you have no control over how the lengths of those variables were defined (say you imported them from Excel) then a little defensive coding will make it possible. data WANT ; set HAVE; length VarFinally $17. ; VarFinally = substr(var1||repeat(' ',15)),1,15)||substr(var3,1)||substr(var4,1); run;
... View more