/* Here is another example of converting character variables to numeric. This is useful if you have a large number of character variables that you need to convert. 17 JUL 96 -- sas.help@umich.edu */ data test; length char1-char3 $ 5; input char1-char3; datalines; 12 34 0567 266 045 299 1 130 1220 ; proc print data=test; title 'printout of data with character variables'; run; data new; set test; array char(3) $ char1-char3; array num(3) num1-num3; do i=1 to 3; num(i)=input(char(i),8.1); end; drop i char1-char3; proc print data=new; title 'printout of data with numeric variables'; run;