Use the DOWK function and just count the mondays. Instructions pasted below.
Good Luck
DOWK and DOWKL: Finding the Day of the Week
Available Operating Systems: All
Available Languages: reporting, Maintain
The DOWK and DOWKL functions find the day of the week that corresponds to a date.
The DOWK function returns the day as a 3-letter abbreviation; the DOWKL function
displays the full name of the day.
Syntax How to Find the Day of the Week
DOWK( indate, outfield)
or
DOWKL( indate, outfield)
where:
indate
Numeric
Is the input date in year-month-day format. If the date is not valid, the function
returns spaces. If the date specifies a 2-digit year and DEFCENT and YRTHRESH
values have not been set, the function assumes the 20th century.
outfield
DOWK: A4
DOWKL: A12
Is the name of the field to which the day of the week is returned, or the format of the
output value enclosed in single quotation marks.
Note: In Dialogue Manager, the format must be specified. In Maintain, the name of
the field must be specified.
Example Finding the Day of the Week
In this example, DOWK uses the argument in HIRE_DATE to determine the day of the
week employees were hired, and stores the result in DATED.
TABLE FILE EMPLOYEE
PRINT EMP_ID AND HIRE_DATE AND COMPUTE
DATED/A4 = DOWK(HIRE_DATE, DATED);
WHERE DEPARTMENT EQ 'PRODUCTION';
END
The output is:
EMP_ID HIRE_DATE DATED
------ --------- -----
071382660 80/06/02 MON
119265415 82/01/04 MON
119329144 82/08/01 SUN
123764317 82/01/04 MON
126724188 82/07/01 THU
451123478 82/02/02 TUE
FOCUS 7.6 MVS PDF,HTML,EXCEL