Here is a link to a useful article on the SAS website on how to calculate age from date of birth. http://support.sas.com/kb/24/808.html I've used this technique to answer your question, first of all I've calculated the total number of complete months between the 2 dates and then used this to get the values you need (years is the integer part of total_months/12, months is the remainder of total_months/12, days is the difference between the end date and the start date advanced by total_months. data l; format sdate enddate date9.; sdate='12jan2010'd; enddate=today(); _totmonths=intck('month',sdate,enddate)-(day(enddate)< day(sdate)); years=floor(_totmonths/12); months=mod(_totmonths,12); days=enddate-intnx('month',sdate,_totmonths,'S'); drop _totmonths; run;
... View more