HI @dkeine Welcome to the SAS forum. In addition to the correction you received , since your conditions are mutually exclusive, you are better off adding a else if
data DID.MLIP101;set DID.MLIP1;IF Antidepressants__ gt0THEN ADM_YN="y";
else IF Antidepressants__ =0THEN ADM_YN="n";/*else if*/run;
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.