10-25-2013 02:48 PM
I was trying to apply formats on a charecter variable and it gives a WARNING:
"VARIBALE HAS ALREADY BEEN DEFINED NUMERIC"????
I used like below
Could you suggest me where i went wrong????
10-25-2013 03:00 PM
I would guess that you are trying to apply a character format to a numeric variable. Possibly the following examples will help:
input charcode $ numcode;
10-25-2013 06:19 PM
Your variable CODE is numeric and you are trying apply a character format (notice the leading dollar sign) to it.
229 proc format;
229 ! value $format '8'='eight';
NOTE: Format $FORMAT has been output.
229 ! run;
230 data x;
231 code=8 ;
WARNING: Variable code has already been defined as numeric.
NOTE 484-185: Format FORMAT was not found or could not be loaded.