This example describes how to schedule a job on the last day of the month if that day falls on a workday (Monday - Friday). If the last day is a weekend, shift the scheduling to the closest preceding workday.
To create a Control-M Rule-based calendar:
From the Tools domain, in the Planning area, select Calendars.
From the Calendar menu, select New > Rule-Based Calendar.
The calendar properties pane appears on the right.
Do the following:
In the Calendar Name field, type the name of the calendar.
From the Control-M Server drop-down list, select the Control-M/Server where the calendar is synchronized.
From the Schedule drop-down list, select Month Days.
In the drop-down list, select Days from End of Month and select -1 (L1).
From Limitations, select Mon, Tue, Wed, Thur, and Fri.
If you want to Order on specific months, select the appropriate month.
To check the Calendar, click View Schedule.
In the Confirmation Calendar area, from the Calendar drop-down list, select the calendar.
If the last day is a weekend and not a working day in the Confirmation calendar, then from the If day is not confirmed drop-down list, select Shift to previous day.
Select the Activity Period according to Start Date and End Date., and click OK.