Hi all,
I have an excel worksheet (xlsx) where all fields were formatted as "General". When I first imported it into SAS, I realized that the variable, "Result", that has numerical values for some obervations and character values for other observations was imported as solely numerical variable (i.e., for those observations that have character values in the result field, the values become missing).
So I tried to use the following code to specify that I want the result field to be imported as character field. However, it does not seem like my code is working. Would y'all please let me know how to fix this issue?
proc import datafile="Z:\Positive Health Check\Data\1985-2017May Data\test2.xlsx" out=ts
DBMS=EXCEL replace;
DBDSOPTS= "DBTYPE=(RESULT='CHAR(20)')";
run;