Hi, I am becoming reacquainted with SAS after a long hiatus and am having trouble with some code. I am trying to recode a variable using the if-else statement and am continuously getting an error message. I can't seem to figure out the issue. I am working with BRFSS data. Any suggestions on what the problem may be? Thank you in advance! if POORHLTH in (77,99,.) then ActsLimited=.;
else if POORHLTH=88 then ActsLimited=0; *0 Days activities limited by poor health;
else if 1 le POORHLTH le 13 then ActsLimited=1; *1-13 Days activities limited by poor health;
else ActsLimited=2; *14 or more days activities limited due to poor health;
run;
... View more