I have the following dataset where each subject ID has a corresponding value (AVAL) that is currently in a character format.
data test;
input SUBJID$ AVAL$6.;
cards;
001 97.9
001 119
001 061
001 62
001 151.0
;
run;
Basically, I want to convert the AVAL variable from character to numeric. I used the following code.
data test;
set test;
AVAL=input(AVAL,1.0);
run;
When I run this code, I don't get the desired output. Also it seems like the AVAL variable is still in character format
How do I covert the AVAL variable to be in numeric format?