Since Select as you are showing is not VALID in a DATASTEP, why do you propose that as part of a solution you are requesting for DATASTEP?
If your variables are SAS date valued variables with a format such as mmddyy10 then the functions YRDIF or Intck can return "age",
and the function INTNX is used to increment values:
data want;
set have;
age = intck('year',dob,snapshotdate); /* close by you need to look up more details on your own*/
contractenddate= intnx('month',snapshotdate,36);
format contractendate mmddyy10.
run;
PLEASE DO NOT SHOUT BY USING ALL CAPITAL LETTERS. AND REPEATING THE EXACT SAME POST IS NOT RESPONDING TO QUESTIONS THAT ARE DESIGNED TO HELP GET A RESPONSE TO YOUR QUESTION.
... View more