multiple run calendars in autosys - calendar

Is it possible to use multiple run calendars for one job in AutoSys r11.3 ?
For example I have calendars:
cal_1 for 2nd working day of the month and
cal_2 for 3rd working day of the month.
Now I have a job that needs to run on both second and third business day of the month. Is it possible to club both the calendars, not having to create a new calendar just for this job.

I don't think so there is a utility to combine two calendars explicitly. However, the calendars are nothing but set of dates as defined/specified. Just get the days from both the calendars and club them; and then use them to add a new composite calendar which has both set of dates.
My idea would be to use CLI utility autocal_asc to get all the dates from both the calendars and append to a file(only the dates; grep if you need to or a similar processing). Once you have the file ready use to autocal_asc once again to create the composite calendar with the dates.
Or you can just add the dates from one to another in a very similar way.

You need not to prepare two calendars just to get the two working days of a month. Instead prepare the dates of a calendar for all the months which you wanted to run by excluding the non-working days (Saturday & Sunday) and holidays.
Now you can create a standard calendar and can give the exact working dates which you get after excluding the non working days and holidays as shown below.
Now I am going to add an ad-hoc date using the standard calendar.
C:\Program Files (x86)\CA\Workload Automation `AE\autosys>autocal_asc`
CA WAAE Calendar Utility
Please select from the following options:
[1] Administer Standard Calendar.
[2] Administer Extended Calendar.
[3] Administer Cycle.
[4] List all Calendars.
[5] List all Cycles.
[0] Exit CA WAAE Calendar Utility.
> 1
Administer Standard Calendar
Please select from the following options:
[1] Create a Calendar.
[2] Add dates to Calendar.
[3] Delete Calendar dates.
[4] Delete an entire Calendar.
[5] List dates for a Calendar.
[6] List all Standard Calendars.
[9] Exit from "Administer Standard Calendar" menu.
[0] Exit CA WAAE Calendar Utility.
> 1
Calendar Name: adhoc-days
Date (MM/DD/YYYY [HH:MM]): 01/02/2017
Date (MM/DD/YYYY [HH:MM]): 01/03/2017
Date (MM/DD/YYYY [HH:MM]): 02/02/2017
Date (MM/DD/YYYY [HH:MM]): 02/03/2017
CAUAJM_I_50430 Insert Successful for Calendar: adhoc-days

Related

RRule Repeating monthly calendar event on weekday only

I have an recurring event on the 7th of each month but am struggling to find an RRule that I can put into a text editor and import into google calendar. I need the rule to put the event on the last week day if the 7th falls on a weekend. Thanks in advance.
Due to the fallback condition, I don't think you can achieve this only defining a RRULE, unfortunately.
RRULE in Google Calendar follows RFC 5545 specification.
With RFC 5545, regarding monthly recurrences, you can either set the recurring rule for a specific day of the month (e.g. always on the 7th of the month would be RRULE:FREQ=MONTHLY;BYMONTHDAY=7) or a specific offset of day of the week within a month (e.g. second to last weekday of the month would be RRULE:FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-2).
Only using this specification, I don't believe there is a way to select the previous (or next) weekday in reference to the 7th day of the month.
However you can always achieve this by using a script to generate the dates or interpret an existing list you already have before insert them on Google Calendar.

Salesforce Lightning - Display Most Recent Meeting Date and Note

In Salesforce Lightning I have built a report for clients with their meeting date and notes. I would like to create a calculation or use a filter that will only show the last meeting date and note.
In the filter section I have tried to use Created date filtered by "Last Activity Date" , Last 7 days etc but I can not find anything that will just show last meeting date in general.

Schedule Nintex Workflow on every 15th of the month querying SP List

I have a SP Custom List with events matrix. I have a Start Date, End Date. I would like to gather all the events from the list that has a start date between 15th of the current month to 15th of the next month and send email notification with details of all those events.
I would like to schedule this workflow to run on every 15th of the month.
Please advise.
Thank you!
For this you would need to build a site workflow because this can be scheduled.
To get the workflow completed:
Step 1. From the workflow use the calculate date action to store the date variable to check for (I.E. between 15th and 15th). Step 2. Use the query list action to find all items (events) that meet that criteria. Step 3. Send email to owners/participant or whomever on those events.

How to create a calendar event that repeats weekly for three months every year?

I want to be reminded about something every week every winter. Is that possible to achieve using the ical-/webcal-standard and Google Calender, Apple Calendar/iCal, Android Calender or similar?
(I searched quite extensively for which subdomain this questioned belonged to but the results were inconclusive, with a slight predominance for SO)
It's definitely possible with RFC 5545 recurrence rules.
You can create a WEEKLY RRULE that recurs in specific months only, like so:
FREQ=WEEKLY;BYDAY=MO;BYMONTH=1,2,12
The occurrences of this rule are all Mondays in January, February and December.
Check out the first 100 instances of such an event at http://recurrence-expansion-service.appspot.com/reaas?dtstart=20160104&rrule=FREQ%3DWEEKLY%3BBYDAY%3DMO%3BBYMONTH%3D1%2C2%2C12&skip=&max_instances=100&expansion_window_end=21000104&rfc2445=1
Changing the rule to DAILY would yield the same results, but might be more compatible with actual implementations.
However, I think most calendar UIs don't provide this level of control over recurrence rules.
update:
To create an all day event starting on Dec 15 2015 and recur on the same day of week use:
DTSTART;VALUE=DATE:20151215
RRULE:FREQ=WEEKLY;BYMONTH=1,2,12
The rule doesn't include March itself. To include March just append ,3 to the rule.

How to handle recurring holidays in Salesforce

In salesforce I can create recurring holidays and based on that in my apex class I want to check whether the current day is holiday or not.
This works fine with normal non recurring holiday. But when I create recurring holiday there is no way to find whether current date will fall on any of the recurring dates.
the holiday object's ActivityDate returns the start date of holiday.
Does anyone have checked the recurring holidays in past for salesforce?
Here is how i would approach this.
Create a function that will take parameters like RECURRENCESTARTDATE , RECURRENCEENDDATEONLY, RECURRENCETYPE, RECURRENCEINTERVAL, RECURRENCEDAYOFWEEKMASK, RECURRENCEDAYOFMONTH, RECURRENCEINSTANCE, RECURRENCEMONTHOFYEAR.
Then this function will loop from start date and for ever iteration it will increment value till date is > today or date is > RECURRENCEENDDATEONLY
in this loop you can check if today's == date calculated above.
once this function is ready pull out list of all recurring holidays.
and call above function on each list item.
let me know if you have any questions.

Resources