hey, I'm confused what's the problem with these codes. Log shows ERROR 180-322: Statement is not valid or it is used out of proper order. Is there anything wrong?😰 %let T = "Temp_status"; %let W = "Work_Status"; %let C = "cough"; Data Grocery2; set Grocery1; if &T = "missing" or &C = "" then &W = "DayOff" ; else if &T = "normal" and &C = "N" then &W = "Worked" ; else &W = "Sick" ; run ; proc freq data = grocery2; table &T*&C*&W/list missing ; run ;
... View more