1 Reply Latest reply on Jul 13, 2018 3:42 AM by Ian Matthews

    Run Control M Job based on 2 calendars (Working day and Holiday Calendar)

    venkataraju saripella

      Hi Experts,

       

      I am new to control-M. I am not sure if this question is posted already, if so please excuse me and redirect me to the solution.

       

      Below is the requirement:

      1. A control M job should run on 25th of every month.

      2. If 25th is a non working day then the job should run automatically on the next working day and also should not run on Holidays(Based on Holiday Calendar).

      3. If 25th to end of the month is continuous holidays, then the job should run on next working day automatically even if it is falls on next month. In this special case, I need to capture the last working day of the previous month (maybe via a variable). (Ex. Job has to run on 25th, but due to continuous holidays the job runs on 1st of next month. In this case I need to capture the last working day of previous month, say 24th)

       

      Please guide me on how this can be achieved using Control M calendars. Should I maintain 2 different calendars to achieve this?

       

      Thanks,

      Venkataraju

        • 1. Re: Run Control M Job based on 2 calendars (Working day and Holiday Calendar)
          Ian Matthews

          Hi Venkataraju

               There shouldnt be a need to maintain two calendars for this.

          For the job in question, try setting its Scheduling up as shown below :-

          Please note - our Workdays calendar excludes weekends and public holidays

           

          In the Exception field, right click on the 25th and select 'order on this day, or next closest working day'

          The schedule for this job should then look like the following :-

           

          Please note - I have set the 27th, 28th and 31st December as holidays for this example, just to show that it will span two months.

                                 Decembers job is scheduled for 2nd Jan.

           

          Hope this is what you were looking for??

           

          Regards

          Ian 

          1 of 1 people found this helpful