Schedule D01 unless bankhol/sunday, then shift to next wd

All questions about Control-M jobs definitions
Post Reply
jerryhall

Schedule D01 unless bankhol/sunday, then shift to next wd

Post by jerryhall » 12 Jul 2012 4:11

Hi,

I would like to schedule a job that runs on the first day of the month, unless this is a sunday or bank holiday, in which case shift to the next working day. Can I achieve this all in one schedule table?

I have a calendar defined where the bank hols are non working days.
I have one job defined with days=D01, dcal=* and wcal=*, with
wdays=-1, confcal=nobankh.

This works fine when D01 isn't a bank holiday or a sunday. but when D01 is a bank hol/sunday, the job doesn't get scheduled at all, even with various shift values.

I am thinking I need to code an extra definition to handle this - any ideas or help welcome...

Jerry

User avatar
Fauzi
Nouveau
Nouveau
Posts: 6
Joined: 13 Jul 2011 12:00
Location: Jakarta

Post by Fauzi » 16 Jul 2012 11:41

Hi Jerry,

Can you try with create a calendar which is defined as all working day over the year. Then in scheduling tab just define Month Days =D1, Calendar=[Defined Calendar], choose 'or' relationship between Month Days and Week Days, add All months to scheduling criteria.

Fauzi

Post Reply