data Employee;
set Testdb.tblEmployee;
/*Age = (TODAY() - Birthdate) / 365.25; */
/*Age = intck('year',Birthdate,date()); */
/*Age = intck('year',Birthdate,TODAY()); */
Age = int(intck('year'Birthdate,TODAY())/12);
run;
I tried each of the above methods to calculate age and none seem to work. Here is an example of how the birthdate looks. 22AUG1966:00:00:00
set Testdb.tblEmployee;
/*Age = (TODAY() - Birthdate) / 365.25; */
/*Age = intck('year',Birthdate,date()); */
/*Age = intck('year',Birthdate,TODAY()); */
Age = int(intck('year'Birthdate,TODAY())/12);
run;
I tried each of the above methods to calculate age and none seem to work. Here is an example of how the birthdate looks. 22AUG1966:00:00:00