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;
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.