Question about regenerating calendars

book

Article ID: 186017

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent CA Workload Automation AE

Issue/Introduction

Currently we have a large number of extended calendars in several of our instances of AutoSys that are “corporate calendars”.  Not all of these calendars are used in each instance but are required to be there.  We get several inquiries about calendars because either our customers view them in standard mode or they have not been regenerated since they were created.  We are looking for a way to automatically issue the regenerate option in the autocal_asc so that we do not have to manually regenerate all the individual extended calendars, to ensure they have the most current date.  Is there something available to us that will accomplish this requirement?

Environment

Release : 11.3.6

Component : CA Workload Automation AE (AutoSys)

Resolution

If the extended calendars are used by any jobs then on the last day in the existing calendar when the job runs autosys will see that there are no future dates and automatically generate one year worth of new dates.
In that situation clients do not need to take any action if the extended calendar has any jobs that actively use it and runs.

If you or your users are concerned about the visuals, concerned that when looking at a calendar and you see it only has a few dates left in it, then yes of course the calendar can be updated at any time which auto-generates a year worth
of new dates from the day of the update.

You can use autocal_asc interactively to update calendars or use the export/import options to do bulk.
Example of bulk:
autocal_asc -e ALL -E exported-extended-cals.txt
autocal_asc -F -I exported-extended-cals.txt

Note - Updating the calendars will cause jobs that use that calendar to delete and recreate their existing STARTJOB events.

Another option available to you would be to create a cycle to include say the next 10 yrs and then include that cycle in the extended calendar definitions.
That would force the extended calendars to generate all the dates for the next 10yrs now.


Enter Cycle Name: next10yrs
Description :
Start Date : 01/01/2020 00:00:00
End Date : 12/31/2020 00:00:00

Start Date : 01/01/2021 00:00:00
End Date : 12/31/2021 00:00:00

Start Date : 01/01/2022 00:00:00
End Date : 12/31/2022 00:00:00

Start Date : 01/01/2023 00:00:00
End Date : 12/31/2023 00:00:00

Start Date : 01/01/2024 00:00:00
End Date : 12/31/2024 00:00:00

Start Date : 01/01/2025 00:00:00
End Date : 12/31/2025 00:00:00

Start Date : 01/01/2026 00:00:00
End Date : 12/31/2026 00:00:00

Start Date : 01/01/2027 00:00:00
End Date : 12/31/2027 00:00:00

Start Date : 01/01/2028 00:00:00
End Date : 12/31/2028 00:00:00

Start Date : 01/01/2029 00:00:00
End Date : 12/31/2029 00:00:00



Enter Calendar Name: wells60with-cycle
Name : wells60with-cycle
Description :
Workdays : mo,tu,we,th,fr
Holiday Calendar :
Cycle Name : next10yrs
Holiday Action :
Non Workday Action :
Date Adjustment : 0
Date Conditions : FOM

For more details see the documentation:
https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/reference/ae-commands/define-workload-objects/autocal-asc-command-manage-calendars.html