I use it but not working length newvar $ 20; if vartype ='numeric' then newvar = catt(stat1, ' (' , stat2, ')' ); else newvar = catt(stat1, ' (', stat2, '%)' ); run; proc print data=HW4q2p1; var vartype $char9. newvar $ 20; run; ----------------- The SAS System 17:54 Tuesday, September 18, 2018 6 Obs vartype stat1 stat2 1 numeric 25.5 12.7 2 character 36.0 34.4 3 numeric 150.0 124.0 4 charecter 23.0 12.1 this is my friend result but I don't how to get it
... View more