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;
Catch up on SAS Innovate 2026
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.