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:
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).
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.
Now check you calendar using
View Schedule and you should see this:
Now you can create your job and assign the rule based calendar
MonthEnd_WD-1 to it:
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