Month End job

All questions about Control-M jobs definitions
Post Reply
User avatar
Gopikkd
Nouveau
Nouveau
Posts: 154
Joined: 25 May 2009 12:00
Location: Bangalore

Month End job

Post by Gopikkd » 02 Sep 2015 5:20

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.

User avatar
sahsanu
Nouveau
Nouveau
Posts: 4
Joined: 18 May 2012 12:00

Re: Month End job

Post by sahsanu » 08 Sep 2015 12:41

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

Post Reply