An employee's age as of the current date or the data as of date (XX:DAO).
EH
This is a defined field.
XX:RUNDATE/MDYY=&MDYY;
XX:AGE/I6 = DATEDIF(XX:BRTHDATE, XX:RUNDATE, 'Y');
AC, AN and SAN
This is a defined field.
XX:AGE/I6 = DATEDIF(XX:BRTHDATE, XX:DAO, 'Y');
Note: You can calculate age based on another date, by subtracting the employee's birth date from the desired date using the DATEDIF function. For example, using April 15, 2009 as the date to compute age:
BASEDATE/MDYY='04152009';
AGE/I6 = DATEDIF(XX:BRTHDATE, BASEDATE, 'Y');
|