I need to convert categorical data in variable REG into numeric and I am doing it as given below:
proc format;
value $Reg
"To"=1
"Al"=2
"No"=3
"Cu"=4
other=5;
run;
data new;set old;
format REG $Reg.;
run;
I tried the method in SAS proc format statement and the column REG is updating with 5 in all values (in all cases). May I know how to convert it properly? Thanks for the help.
