Hi I have two variables with descriptive statistics and I need to calculate the difference between them _name_ var1 var2 var_want mean(sd) 76.4(11.39) 77.2(8.63) min,max 40.0,113.0 50.0,106.0 i've tried this,example if _name_="min,max" then var_want=substr(var,1,2)-substr(var2,1,2)||","||substr(var,6,3)-substr(var2,6,3) but it doesn't work cause 40-50=-10 and sas cannot convert it to char (invalid numeric data) is there a simple way to calculate the difference between var1 and var2 ?
... View more