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;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.