Schedule Autosys job in UI for 2ndtuesday of every month - autosys

I have a job, needs to Run only on 2nd Tuesday of every month.
can someone help, all responses are appreciated

Create an extended calendar, and assign to the respective jobs
extended_calendar: Tue2_Monthly
description: 2nd Tuesday Monthly
workday: mo,tu,we,th,fr
non_workday:
holiday:
holcal:
cyccal:
condition: tue#2

Related

Extended Calendar Date range every month 2 to 15 - Autosys

Need to use extended calendar to trigger the job every month 2 to 15 irrespective of holidays and week-ends
Kindly help on it
can we use MONTHD#2 | ....| MONTHD#15 to achieve it ?

How to specify two dates in Autosys jil let’s say it has to run on two calendar dates 15th and 30th of each month?

I specified like below
run_calendar : 15CD & 30CD
Getting an error saying invalid keyword?
Tried many combinations “15CD” & “30CD” also 15CD,30CD still sane error.
extended calendar can have such conditions.
Create an extended calendar as
extended_calendar: Cal_name
description: runs on 15th and 30th of every month
workday: mo,tu,we,th,fr
non_workday:
holiday:
holcal:
cyccal:
adjust: 0
condition: MNTHD#15| MNTHD#30
Use this calendar for your job.
MNTHD#nn
Specifies that the schedule that is generated by the extended calendar includes the nnth day of the month.
refer this link for more such combination of calendar conditions
Hope this helps.

Printing from an autosys calendar

I have a standard autosys calendar for last biz of the month. My requirement is that I need to pass the last biz day of the previous month to another script when executing on the last biz day of this month. I was able to export the calendar using autocal_asc command. And iam running this using powershell script. Is there a command in autosys that can give me the last biz day of the previous month from the calendar?
Thanks,
Aron
There is nothing native to autosys that can do that.
For the powershell try this:
enter link description here
Dave

Contol M scheduling concept

Job A runs Mon-Fri and triggers job B. However, I want Job B to run every day. How can I ensure Job B runs on Saturday and Sunday, even though it is set up to only run after Job A completes?
What we did for the similar issue is we created a job that rolls in only on weekends. This job might not have any IN-condition or can be timer dependent.
Let's call this job 'JOB_WEEKEND'.
JOB_WEEKEND out condition:
JOB_WEEKEND-OK
Now the Job B should have these conditions
JOB A-OK or JOB_WEEKEND_OK
This you can select from 'IN conditon relationships' below the conditions tab. This weekend job can be used for any other similar jobs too.
If you are using Control-M version 8, then you can use adjust condition option by using smart folders instead of creating a new dummy job.
You just need to give '#' before the IN condition of job B for Job A as below:-
IN #-JOB A--JOB B
while giving this condition, it means that job B will wait if there is a job A (from Mon- Fri). However, on weekend (SAT & SUN) the job B will not wait for Job A.

Drop Down Date Delivery

I want to use a asp.net drop down to present the user a delivery date on checkout. What I'm not sure about is how to get the specific dates. What the user should see and be able to select in the drop down is the next Monday and Tuesday for the next two weeks. Any help would be appreciated.
thanks.
The simplest solution is to use the DateTime.DayOfWeek property (http://msdn.microsoft.com/en-us/library/system.datetime.dayofweek.aspx).
You start with getting today's date, or, if today is Monday and you can't deliver for two days, so the next delivery will be a week Monday, then start with tomorrow. I am not certain how you would handle if I order tomorrow could I get a delivery date for the next day, so I would need that clarified.
Get the day of the week, starting with either today or tomorrow, extracting it from a specific date as explained here:
http://msdn.microsoft.com/en-us/library/system.datetime.dayofweek.aspx
If it isn't Monday or Tues then just determine how many days you need to reach Monday or Tuesday, then add that number of days and get that date, and then just add seven and get the date.
I would prefer to let .NET determine the date of seven days from now, as you may change month or years.
That is the basic approach. If you get stuck when trying to implement it, I would suggest some code so we can help you determine where you got stuck.
There are other approaches, but this is probably the simplest to understand and implement.
Here's a pretty simple suggestion using a lot of LINQ:
private void LoadDeliveryDays(int period)
{
DateTime[] days = Enumerable.Range(1, period).Select(i => DateTime.Today.AddDays(i)).ToArray();
DropDownList1.DataSource = (from d in days where d.DayOfWeek == DayOfWeek.Monday | d.DayOfWeek == DayOfWeek.Tuesday select d.ToString("dddd dd-MM-yyyy")).ToArray();
DropDownList1.DataBind();
}
You probably want to change the d.ToString("dddd dd-MM-yyyy") and/or what value is actually used in the dropdown.

Resources