ESP Workload Automation

 View Only
  • 1.  CA-7 calendars: help to set special schedules

    Posted Jul 06, 2015 04:03 PM

    Hi,

     

    I have a question you may be able to help me with.

    The following calendar is set to run on a "Sunday" per month, which is manually determined each year by the customer.

     

    ----------------------  CA-7 BASE CALENDAR MAINTENANCE  ---------      

     

    CALENDAR: SCAL15TXX SCHONLY: N EAR: 15

                                                                                                                            

                       1    1    2    2    3                         

             ....5....0....5....0....5....01         BEGIN      END 

        JAN  0000000000000000000000001000000        01 / 01   01 / 31

        FEB  0000000000000000000001000000           02 / 01   02 / 28

        MAR  0000000000000000000001000000000        03 / 01   03 / 31

        APR  000000000000000000100000000000         04 / 01   04 / 30

        MAY  0000000000000000000000010000000        05 / 01   05 / 31

        JUN  000000000000000000001000000000         06 / 01   06 / 30

        JUL  0000000000000000000000000100000        07 / 01   07 / 31

        AUG  0000000000000000000000100000000        08 / 01   08 / 31

        SEP  000000000000000000010000000000         09 / 01   09 / 30

        OCT  0000000000000000000000001000000        10 / 01   10 / 31

        NOV  000000000000000000000100000000         11 / 01   11 / 30

        DEC  0000000000001000000000000000000        12 / 01   12 / 31

     

    I need some jobs to run on that Sunday, some to run on the next Monday (the following day) and some on Tuesday (2 days after).

    For example in July it would be: on the 26th, on the 27th and on the 28th (multiple different jobs).

     

    Can I set my jobs to do that without changing the existing calendar?

     

    We always have the chance to create a new calendar but it would mean to maintain two instead of only one.

     

    Thank you!



  • 2.  Re: CA-7 calendars: help to set special schedules

    Posted Jul 06, 2015 04:31 PM

    You cannot schedule a job to run on the next Monday (the following day) orTuesday (2 days after) on this calendar since they are not available days.  You will have to use a different calendar for the SCHIDs that require this run.  If there is some pattern to the runs, they may be able to be set up with the SYMETRIC option on a regular calendar and the exceptions defined in the schedule member.



  • 3.  Re: CA-7 calendars: help to set special schedules

    Posted Jul 06, 2015 04:49 PM

    I have thought long and hard Julia, and I can think of some bad ways of doing it but no good ways except of what MarySue has said.   Are you going to be doing this enough times to warrent creating a new calendar?  If we had a little more information we might come up with some ideas to help...  But your calendar the way it is wouldn't let you run anything other than on a Sunday.

     

    renate



  • 4.  Re: CA-7 calendars: help to set special schedules

    Posted Jul 07, 2015 07:26 AM

    Thanks for the replies MARYSUE & Renate!

     

    If using above calendar is not an option I will create the following and just tell the job to run on "Mondays" for example:

     

                      1    1    2    2    3                        

             ....5....0....5....0....5....01        BEGIN      END

        JAN  0000000000000000000000001110000       01 / 01  01 / 31

        FEB  0000000000000000000001110000          02 / 01  02 / 28

        MAR  0000000000000000000001110000000       03 / 01  03 / 31

        APR  000000000000000000111000000000        04 / 01  04 / 30

        MAY  0000000000000000000000011100000       05 / 01  05 / 31

        JUN  000000000000000000001110000000        06 / 01  06 / 30

        JUL  0000000000000000000000000111000       07 / 01  07 / 31

        AUG  0000000000000000000000111000000       08 / 01  08 / 31

        SEP  000000000000000000011100000000        09 / 01  09 / 30

        OCT  0000000000000000000000001110000       10 / 01  10 / 31

        NOV  000000000000000000000111000000        11 / 01  11 / 30

        DEC  0000000000001110000000000000000       12 / 01  12 / 31


    Just wanted to make sure that there were no way to achieve this by using the existing calendar.

     

    Currently we use a 7D calendar and set the ANNUAL days manually every year, which takes a lot of time and effort.

     

    It will be much easier to create a new calendar and update it instead.

     

    Thanks again!



  • 5.  Re: CA-7 calendars: help to set special schedules

    Posted Jul 07, 2015 09:12 AM

    Hi Julia, did you tried the INDEX option while scheduling the job? Per my understanding, if you give this calendar (with Sunday active day) and INDEX=+001 then the job will run on Monday and +002 will schedule the job on Tuesday. Just have a try and see if it works as per your expectation. Thanks.



  • 6.  Re: CA-7 calendars: help to set special schedules

    Posted Jul 13, 2015 01:57 PM

    Hi Nair,

     

    I tried the INDEX=+001 but it did not work as expected:

     

    ------------------------------ SCHEDULES ---------------------

                    LAST RESOLV ON 15.000 AT 00:00          

                    CALENDAR SCAL15XX                        

    ID=123  ROLL=D  INDEX=+001                              

    SCAL=XX  DOTM=0010  LEADTM=00100  SUBTM=0000  STARTM=0000

            MONTHLY  DAY=SUN  WEEK=01  MONTH=ALL            

            MONTHLY  DAY=SUN  WEEK=02  MONTH=ALL            

            MONTHLY  DAY=SUN  WEEK=03  MONTH=ALL            

            MONTHLY  DAY=SUN  WEEK=04  MONTH=ALL            

            MONTHLY  DAY=SUN  WEEK=05  MONTH=ALL

     

    The forecast showed only Sundays... even when the SCHONLY=N in the calendar.

     

    Did I set anything wrongly?

     

    Thank you!



  • 7.  Re: CA-7 calendars: help to set special schedules

    Posted Jul 14, 2015 01:16 AM

    Hi Julia,

     

    Can you change ROLL=N and try again.