I also am having the same problem and do not understand how to it. I am trying to use the bg variable which is blood glucose lvl. I want the normal type to be 70-105 bg and abnormal to be all other numbers. data wb_bg ; SET wb_bg_1 wb_bg_2 ; DC= '28jun02' ; TC= '08:40' ; DOW=weekday(date); if 70<- bg <-105 then Type= 'A' ; else if bg= 70-105 then Type= 'N' ; run; proc format ; value DOW 1= 'Sun' 2='Mon' 3='Tue' 4='Wed' 5= 'Thu' 6= 'Fri' 7= 'Sat' ; value Type 'A'= 'Abnormal' 'N'= 'Normal' ; run; proc print data=wb_bg; format Date date7. Time time5. DOW DOW. Type Type.; run;
... View more