Automic Workload Automation

  • 1.  How do I schedule the job so it runs only on first x business days of month?

    Posted Feb 27, 2014 10:04 AM

    I'd like to schedule a job, which is required to run on only first five business days.  For example, Jan 2nd (Thu), Jan 3rd (Fri), Jan 6th (Mon), Jan 7th (Tue), and Jan 8 (Wed) in 2014.

    In the calendar object, we've got the keywords, WEEKDAY (Weekly), HOLIDAY.ONTARIO (Static), and BUSINESSDAY.ONTARIO (Group using WEEKDAY and HOLIDAY.ONTARIO).

    It doesn't seem to be possible to come up with a Calendar keyword that defines the first x business days each month.  I've tried Roll without any luck.

    Appreciate any options / ideas.

    Thanks,



  • 2.  How do I schedule the job so it runs only on first x business days of month?
    Best Answer

    Posted Feb 27, 2014 10:51 AM

     

    If you don't mind creating a static calendar it can be done. Otherwise I am not sure. You can create a weekly calendar (named WORKINGDAYS) in which you select monday to friday. After that create a static calendar and open the Calendar assistant. Maybe you have to create a holiday calendar and group them together to get all the working days in a year...

    If you then select the second radiobutton under "Definitions", specify "Working day keyword" to WORKINGDAYS and then you can subsequently add the 1st, 2nd, 3rd etc. "working day of the month" to the static calendar. 


     



  • 3.  How do I schedule the job so it runs only on first x business days of month?

    Posted Feb 27, 2014 11:57 AM
    1) Create a GROUP keyword called WORKDAYS.ONTARIO, and tell it to include keyword WEEKDAY, and exclude calendar HOLIDAY.ONTARIO 2) Create a MONTHLY keyword called 1ST.OF.MONTH that selects the 1st calendar day of each month. 3) Create a ROLE keyword called 1ST.WORKDAY.OF.MONTH.ONTARIO that sources the 1ST.OF.MONTH keyword, and turn on the "adjust by" feature.  Tell it to adjust by +0, based upon WORKDAYS.ONTARIO 4) Create a ROLL keyword called 5th.WORKDAY.OF.MONTH.ONTARIO that sources the 1ST.WORKDAY.OF.MONTH.ONTARIO keyword, and adjusts "+4" based upon WORKDAYS.ONTARIO. Let me know how it turns out...   (I DON'T KNOW WHY THIS FORUM ISN'T RESPECTING LINE BREAKS TODAY?)


  • 4.  Re: How do I schedule the job so it runs only on first x business days of month?

    Posted Jul 17, 2018 01:27 PM

    Hi Pete,

    I'm trying to create a keyword for "first weekday of the month." I tried following your steps from 2014, but I don't see the "ROLE" keyword. Could you please help me. I'm on v10.



  • 5.  Re: How do I schedule the job so it runs only on first x business days of month?

    Posted Jul 18, 2018 02:43 AM

    Hi

     

    The keyword type is "ROLL" :-)

    unfortunately I did not know Pete's step by step guideand cested my onw yesterday for the same requirement :-(

    Calendar Keywords 

     

    cheers, Wolfgang



  • 6.  Re: How do I schedule the job so it runs only on first x business days of month?

    Posted Jul 18, 2018 10:04 AM

    No worries. There are a thousand ways to kill a rat. :-)



  • 7.  How do I schedule the job so it runs only on first x business days of month?

    Posted Feb 27, 2014 12:52 PM

    Thanks both for the solutions. I'm inclined to use Pete's solution as it won't require maintenance.  If we ever expand the running days to, say, first 12 business days, we'd end up having 12 ROLE keywords, 1ST, 2ND, 3RD...12TH.WORKDAY.OF.MONTH  :D

    For now, the requirement is first five business days, which is still manageable.  Thanks again.



  • 8.  How do I schedule the job so it runs only on first x business days of month?

    Posted Feb 27, 2014 07:24 PM

    I too agree with Pete's solution, though I've personally not use the + feature much in my calculation.  I try to set up calendars so that they don't need to be touched once set up.  ;)