AutoSys Workload Automation

Expand all | Collapse all

Extended Calender.  Want to set up extended cal to run on the 20th of each month.  If 20th falls on Saturday, run Friday before,  if on Sunday, run on Monday after..

  • 1.  Extended Calender.  Want to set up extended cal to run on the 20th of each month.  If 20th falls on Saturday, run Friday before,  if on Sunday, run on Monday after..

    Posted Jun 22, 2017 11:26 AM

    Want to set up extended cal to run on the 20th of each month.  If 20th falls on Saturday, run Friday before,  if on Sunday, run on Monday after..



  • 2.  Re: Extended Calender.  Want to set up extended cal to run on the 20th of each month.  If 20th falls on Saturday, run Friday before,  if on Sunday, run on Monday after..
    Best Answer

    Broadcom Employee
    Posted Jun 23, 2017 05:42 AM

    Hi Sam,

    The following extended calendar definition will run on the 20th of each month. And if the 20th falls on Saturday or Sunday it will run on Monday.

     

    Name : cal_daym20
    Description :
    Workdays : mo,tu,we,th,fr
    Holiday Calendar :
    Cycle Name :
    Holiday Action :
    Non Workday Action : W
    Date Adjustment : 0
    Date Conditions : MNTHD#20

     

    Example:

    Enter Name: cal_daym20
    Enter Description:
    Enter Workdays [XXXXX..]: XXXXX
    Enter Non-workday Actions [' ',O,S,N,W,P]: W
    Enter Holiday Actions [' ',O,S,N,W,P]:
    Enter Holiday Calendar [none]:
    Enter Cycle Name [none]:
    Enter Date Adjustment [0]:
    Enter Date Conditions [DAILY]: MNTHD#20
    Would you like to preview this calendar? [1(yes)/0(no)]: 1
    Generated Dates are:

    2017 (MM/DD/YYYY)
    -----------------

    January 2017 February 2017 March 2017
    ------------------------- ------------------------- -------------------------

    April 2017 May 2017 June 2017
    ------------------------- ------------------------- -------------------------

    July 2017 August 2017 September 2017
    ------------------------- ------------------------- -------------------------
    07/20/2017 00:00:00 08/21/2017 00:00:00 09/20/2017 00:00:00

    October 2017 November 2017 December 2017
    ------------------------- ------------------------- -------------------------
    10/20/2017 00:00:00 11/20/2017 00:00:00 12/20/2017 00:00:00

    2018 (MM/DD/YYYY)
    -----------------

    January 2018 February 2018 March 2018
    ------------------------- ------------------------- -------------------------
    01/22/2018 00:00:00 02/20/2018 00:00:00 03/20/2018 00:00:00

    April 2018 May 2018 June 2018
    ------------------------- ------------------------- -------------------------
    04/20/2018 00:00:00 05/21/2018 00:00:00 06/20/2018 00:00:00

    July 2018 August 2018 September 2018
    ------------------------- ------------------------- -------------------------

    October 2018 November 2018 December 2018
    ------------------------- ------------------------- -------------------------

     

    The current design of the Extended Calendars does not seem to allow to manage easily both Saturday to Friday and Sunday to Monday conditions at the same time.

     

    We may use the holiday calendars as a workaround but it requires creating a standard calendar including Saturdays and then set Holiday Actions to P (Previous Workday).

     

    Thanks,

    Roya