Hi I am trying to convert character value to numeric used. this codes
data datachek.mil_lab_2017_A;
set datachek.MIL_LAB_2017;
AZIMICDD = INPUT(AZI_MIC_DD, BEST8.);
DROP AZI_MIC_DD;
RENAME AZIMICDD=AZI_MIC_DD;
RUN;
log did not show any error
51 data datachek.mil_lab_2017_A;
52 set datachek.MIL_LAB_2017;
56 AZIMICDD = INPUT(AZI_MIC_DD, BEST8.);
57 DROP AZI_MIC_DD;
58 RENAME AZIMICDD=AZI_MIC_DD;
59 RUN;
NOTE: There were 2406 observations read from the data set DATACHEK.MIL_LAB_2017.
NOTE: The data set DATACHEK.MIL_LAB_2017_A has 2406 observations and 30 variables.
NOTE: DATA statement used (Total process time):
real time 0.12 seconds
cpu time 0.03 seconds
but the converted data has . value no numbers. Can some tell me why and how can i fix this. Also can I convert from character to numeric and change the length of the variable at once?
I would be so grateful of your help?
I have several variables value that need to be converted from character to numeric, how can i do it once?