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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!