I have the following formula to calculate age and years of service (yrs service is shown)
WhileReadingRecords;
DateVar Birth:= {HR_RETIREMENT_ELIGIBLE.HIRE_DT};
DateVar Ann := Date (2004,06 ,30 );
if (Month(Ann) * 100) + Day (Ann) >=
(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
I am doing a select for:
{@Yrs Service} >= 35 or
{@Age} >= 60.00 and {@Yrs Service} >= 3
To give me numbers of employees that are eligible for retirement.
I would like to break this down into the next 5 years, with each year showing only those employees that are eligible to retire in that specific year. (subtracting the previous years eligibles?)
Currently, all I do is change the DateVar Ann := Date (2004,06 ,30 ); to 2005, 2006 etc....
I would like to be able to do this all in one report, so I can use the muliple pie chart option.
Thanks for any/all suggections!
WhileReadingRecords;
DateVar Birth:= {HR_RETIREMENT_ELIGIBLE.HIRE_DT};
DateVar Ann := Date (2004,06 ,30 );
if (Month(Ann) * 100) + Day (Ann) >=
(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
I am doing a select for:
{@Yrs Service} >= 35 or
{@Age} >= 60.00 and {@Yrs Service} >= 3
To give me numbers of employees that are eligible for retirement.
I would like to break this down into the next 5 years, with each year showing only those employees that are eligible to retire in that specific year. (subtracting the previous years eligibles?)
Currently, all I do is change the DateVar Ann := Date (2004,06 ,30 ); to 2005, 2006 etc....
I would like to be able to do this all in one report, so I can use the muliple pie chart option.
Thanks for any/all suggections!