The following parameter specification is passed to the utility:
OLDCAL ><W 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 specifies that for each working day in OLDCAL, the IOABLCAL utility finds the closest working day in WORKDAYS, and make that day a workday in NEWCAL.
The first workday in OLDCAL is day 5. This is also a workday in WORKDAYS, so it becomes a workday in NEWCAL.
The next workday in OLDCAL is day 8. This is not a workday in WORKDAYS. The next closest workday in WORKDAYS is day 7, so day 7 becomes a workday in NEWCAL.
The next workday in OLDCAL is day 9. This is not a workday in WORKDAYS. The next closest workday in WORKDAYS is day 10, so day 10 becomes a workday in NEWCAL.
The next workday in OLDCAL is day 12. This is also a workday in WORKDAYS, so it becomes a workday in NEWCAL.
The next workday in OLDCAL is day 15. This is not a workday in WORKDAYS. The next closest workdays in WORKDAYS are days 13 and 17 (that are equally close to day 15). Since the parameter operation statement ><W began with symbol >, the value to the right (meaning, the subsequent day) is chosen. Therefore, day 17 becomes a workday in NEWCAL.