Hi,
I am trying to convert numeric to character value for one of the variables, but the missing values are taking the values.
Can some one suggest a way that the missing values are displayed as missing value or correct me what I am missing in the code?
Thanks in advance.
Regards,
Nasya
*------------------------------------------------------------------------------*;
* Screener data set
*------------------------------------------------------------------------------*;
data screener (keep=subject age misd dispos);
set pdata.screener;
by subject;
run;
/*Sort the data*/
proc sort data= screener;
by subject;
run;
data screenerfinal;
set screener;
attrib TEST length=$200; /*Convert numeric to character and new variable is assigned*/
if dispos eq 6 then delete;/*Did not qualify*/
misd_=put(misd, best.);
if misd le 5 then TEST = ' Normal Level';
else if misd > 5 then TEST = ' Low Level';
else if misd eq . then TEST= ' ';
keep subject age misd test dispos;
run;
proc sort data= screenerfinal;
by subject;
run;