Page 1 of 1

Month End job

Posted: 02 Sep 2015 5:20
by Gopikkd
Can you please advise if there is a functionality to run a Control M job only on month end -1 ( Business day) each month.
For example the Job has to be scheduled to run on August 28th, then September 29th and so on.

Re: Month End job

Posted: 08 Sep 2015 12:41
by sahsanu
Hello,

Really, the easiest way is to create a regular calendar and mark exactly the days you want your job to run.

If you still want the hardest way ;)

Use 2 calendars, the first one should be a regular calendar and the second one a rule calendar:

Image

Create a regular calendar (in this example the name is RegularWD) where you will mark the workdays on your company. In this example all days from Monday to Friday are work days (you should mark the bank holidays on your country/company).

Image

Now create a second calendar, this time a rule based calendar (in this example the name is MonthEnd_WD-1).
1.- In Schedule select Based on Calendar
2.- Select Relative Calendar Days from Start/End of Month/Period
3.- In Calendar select the regular calendar that we have created (RegularWD)
4.- In section Calendar days counting from end of the month select -2, yes it is -2 and not -1, -1 is for the last day of the month.

Image

Now check you calendar using View Schedule and you should see this:

Image

Now you can create your job and assign the rule based calendar MonthEnd_WD-1 to it:

Image


Note: Instead of the second rule based calendar, you could define that rule directly in the job. In case you have several jobs with the same scheduling criteria it is better to have the rule based calendar.

I hope this helps.

Cheers,
sahsanu