I need to determine if each person received a shot by the time they're certain age and also if they've received it by the time they enter a program (specified calendar date) What do you suggest I do? I've programs left by someone else which I've tried modifiying and they used months. The birthdate and shot dates are 2 digit month, 2 digit day, and 2 digit year. So, we can convert to a sasdate using birthdate=mdy(month, day, year) and shotdate=mdy(month, day, year). Question 1: How do I determine if they've received a shot by up to 10 days before age 4 years? Using the old code which uses months, i can multiply 48*30.4375 to get age 4 years. Does that give me how old the child is in sasdate in months? If so, how do I get a sasdate for the age in months including a 10 day grace period? Going even further, how do I get a sasdate in age in years? is 48*30.4375 a sasdate for age 48 months and for 4 years or is it for only 48 months and there's a different sasdate for 4 years? Question 2: If I want to know if they've received the shot not only by age 4 but also before a certain date after that, say by the time they enter a program Do I convert the date they enter the program into a sasdate too ((enterdate=mdy(10,10,2010) for example.). And, if the sasdate number they received the shot is greater than the sasdate for age 4 years (48*30.4375) and less than the program entry date, they've fulfilled the requirement? So, it'll be: if 48*30.4375 < shotdate <enterdate then fulfilledrequirement=1; Thanks very much!
... View more