Hi, Please use below code for your requirement. INTCK() function will not give values in decimals. data test; input dob mmddyy10.; format dob mmddyy10.; cards; 12/22/1994 12/05/1990 12/21/1978 12/27/1977 ; run; data test1; set test; format date mmddyy10.; date=today(); /*Get today's date*/ agey=intck('year',dob,date); /*Get age in years*/ agem=intck('month',dob,date); /*Get age in months*/ agew=intck('week',dob,date); /*Get age in weeks*/ aged=intck('days',dob,date); /*Get age in days*/ run;
... View more