The following code automatically
converts the variable PayRate from character to numeric.
data work.newtemp;
set cert.temp;
Salary=payrate*hours;
run;
You can also use the INPUT function before performing
a calculation. The INPUT function converts character data values to
numeric values.
You can use the PUT
function to convert numeric data values to character values.