How do I schedule all workday except last workday of year

All questions about Control-M jobs definitions
Post Reply
User avatar
aronfire
Nouveau
Nouveau
Posts: 8
Joined: 23 Dec 2010 12:00

How do I schedule all workday except last workday of year

Post by aronfire » 04 Jan 2018 12:04

Could someone have an idea how to schedulle a Job all Workdays except last workdat of year?
My scenario is, I have a regular calendar with all workdays of the year. Currently my solution is defining that the job should "active" all year unless the last workday of the year but this manually every year. I want to avoid not update that specific job every year becauseI will have to change de the active parameter for the next year.
Someone have another idea to achieve it without the active parameter

Im working with control-m 7


Thanks in advance
Aaron :mrgreen:

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Re: How do I schedule all workday except last workday of year

Post by fyot » 05 Jan 2018 10:16

Hi

Here is a solution.
Using RuleBased Calendar

1 - Creating two RB calendar
1 ALL_WDAYS: including all working days
2 LAST_DAYOFY : including only the last working day of december
All of them could use regular calendar to know working days.

How to configure LAST_DAYOFY ?
In Day of Month type L1 using Regular Calendar or not.
Select WeekDays and AND operator
and seclect only december.

2 - In the Job Scheduling
Select RB Calendars :
ALL_WDAYS in RB Calendar List
and
LAST_DAYOFY in Excluded RB Calendar List

User avatar
aronfire
Nouveau
Nouveau
Posts: 8
Joined: 23 Dec 2010 12:00

Re: How do I schedule all workday except last workday of year

Post by aronfire » 05 Jan 2018 7:47

Hello Fyot,
I don't see the exclude option.
Attachments
Captura.JPG
jobOutput
Captura.JPG (76.95 KiB) Viewed 25963 times
jobOutput
jobOutput
Captura.JPG (76.95 KiB) Viewed 25963 times

Guilherme_HFA
Nouveau
Nouveau
Posts: 3
Joined: 18 Jan 2018 3:18

Re: How do I schedule all workday except last workday of year

Post by Guilherme_HFA » 19 Jan 2018 2:11

aronfire wrote:Hello Fyot,
I don't see the exclude option.
Scheduling tab > Select schedule and then "Using Specific Rule-Based Calendars"

In there it will give you two options:
Rule-Based Calendars List - Add your "All workdays" calendar in there.

Excluded Rule-Based Calendars List - Add your "Last workday of the year" Calendar in there.

Then just click on View Schedule and you'll see all work days are valid, except the last one.

User avatar
aronfire
Nouveau
Nouveau
Posts: 8
Joined: 23 Dec 2010 12:00

Re: How do I schedule all workday except last workday of year

Post by aronfire » 25 Jan 2018 5:30

Hi Fyot,
But I dont have that option im working with version 7.

Guilherme_HFA wrote:
aronfire wrote:Hello Fyot,
I don't see the exclude option.
Scheduling tab > Select schedule and then "Using Specific Rule-Based Calendars"

In there it will give you two options:
Rule-Based Calendars List - Add your "All workdays" calendar in there.

Excluded Rule-Based Calendars List - Add your "Last workday of the year" Calendar in there.

Then just click on View Schedule and you'll see all work days are valid, except the last one.
Attachments
tab_schedulling.JPG
tab_schedulling.JPG (77.19 KiB) Viewed 22107 times
tab_schedulling.JPG
tab_schedulling.JPG (77.19 KiB) Viewed 22107 times

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Re: How do I schedule all workday except last workday of year

Post by fyot » 08 Feb 2018 12:25

Hi

Strange
RuleBased appeared with version 7
So verify your FixPack version

User avatar
aronfire
Nouveau
Nouveau
Posts: 8
Joined: 23 Dec 2010 12:00

Re: How do I schedule all workday except last workday of year

Post by aronfire » 15 Feb 2018 1:29

fyot wrote:Hi

Strange
RuleBased appeared with version 7
So verify your FixPack version
Thanks I will check that.

Post Reply