The following parameter specification is passed to the utility:
OLDCAL <W 2 WORKDAYS = NEWCAL
Assuming the following calendars
S - - - - - - S - - - - - - S - - - -
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9
Y Y Y Y Y OLDCAL
S - - - - - - S - - - - - - S - - - -
and
S - - - - - - S - - - - - - S - - - -
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9
Y Y Y Y Y Y Y Y Y Y Y WORKDAYS
S - - - - - - S - - - - - - S - - - -
the resulting new calendar is
S - - - - - - S - - - - - - S - - - -
1 2 3 4 5 6 7 8 9 + 1 2 3 4 5 6 7 8 9
Y Y Y Y Y NEWCAL
S - - - - - - S - - - - - - S - - - -
Note the following points in this example:
Operation <W 2 specifies that for each working day in OLDCAL, the IOABLCAL utility finds the corresponding working day in WORKDAYS, and then shift two workdays to the left.
The first workday in OLDCAL is day 5. This is also a workday in WORKDAYS. The 2nd workday to the left of day 5 in WORKDAYS is day 3, that becomes a workday in NEWCAL.
The next workday in OLDCAL is day 10. This is also a workday in WORKDAYS. The 2nd workday to the left of day 10 in WORKDAYS is day 6, that becomes a workday in NEWCAL.
The next workday in OLDCAL is day 11. This is also a workday in WORKDAYS. The 2nd workday to the left of day 11 in WORKDAYS is day 7, that becomes a workday in NEWCAL.
The next workday in OLDCAL is day 12. This is also a workday in WORKDAYS. The 2nd workday to the left of day 12 in WORKDAYS is day 10, that becomes a workday in NEWCAL.
The next workday in OLDCAL is day 15. This is not a workday in WORKDAYS. The closest workday to the left, in WORKDAYS, is day 13. The 2nd workday to the left of day 13 in WORKDAYS is day 11, that becomes a workday in NEWCAL.