hmmm, you have the DOWK function, yes?
and you can make at least make your dates into smartdates, yes? DATECVT for example?
or if not and your date is text then
iTEMP/I8 = EDIT(SOMEDATE);
iitemp/I8YYMD = iTEMP;
START/YYMD = iiTEMP ;
figure out what day of week your start date is
add enough days to it to get to the next sunday.
figure out what day of week your end date is,
subtract enough days to get it to the previous saturday
measure the difference
divide by 7 to get the # of weeks
multiply by 5 to get the total number of business days in those weeks.
add back whatever business days you had to adjust at both ends.
Getting the idea?
Do you have DATEMOV function? probably not, right?
| In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID |