Hello folks,
I have a problem that I have no been able to solve. Basically, I want to recode the character R as the numeric missing value 999 but keep getting the error "invalid numeric data" error. Thanks for any help!
*Recode missing values;
DATA autonomy; SET autonomy;
ARRAY old(16) $16 aauto1-aauto8 mauto1-mauto8;
ARRAY recode(16) aauto1-aauto8 mauto1-mauto8;
DO i = 1 to 16 BY 1;
IF old{i}='R' THEN recode{i}=999;
END;
DROP i;
RUN;
... View more