preventing autosys job to run on certain timing of the certain day - autosys

I have a job which runs everyday 4 times in an hour (total 48 times).
I want to prevent it from running only between 7 AM to 9 AM Sunday. How can I achieve it without creating two different jobs. I want to accomplish it in a single job. Please help.

Mention all the time the job should run in start_times like below
*replace .. with missing times
start_times: "00:00, 00:15, .... 06:30, 06:45, 9:15, 9:30, .. 23:45"

I suggest to create a calender defined as Every Sunday 07:00 till 09:00.
And then in the Job defination assign this calender to job attribute exclude_calendar along with your run_calendar.

Related

Autosys on every monday and first day of month

I need to configure a autosys schedule which should run on every monday and 1st of every month. Is it possible to do in single JIL file.
I have used days_of_week: mo and what is the config used for date.
Is it possible to write a OR condition to trigger the job on either 1st or monday.
I would say just create a calendar with those requirements, you can also do that as extended calendar so you don't have to update the regular calendar ever.
Choice is yours :)

Control-M avoid cyclic job from run before prev day's complete

I have a Control-M job that runs every 20 min. Everything works great during that day's run. The issue is when we auto-order the next days jobs. If the current day's jobs are running we get 2 copies of the jobs running at the same time.
Is there a way to not start the new job if the previous day's job is executing?
The job starts every 20 minutes, but how long does it run? Set the end window for "submit between" time a few minutes before the new day build.
Let's say your new day builds at 0400. Since the job is intended to run every 20 minutes, you can have it run as late as 0340. Set the "to" time in Activity Window to 0340 and the job won't autosubmit after that time. The new day will build at 0400 and the new version of the job will start then - 20 minutes after the previous start.
You can also add a control resource to the job to prevent two of them from running at the same time. I don't know another way to do it. That's not a can of worms I'd open unless the activity period settings just won't work the way you want them to.
If you're referring to last day's job execution bleeding into current day, causing resource contention, your best bet (as Rob pointed out) is to define a resource with max count of 1 to be required by the job, so next day job instance cannot start until prev day job completes and release the resource. Alternatively you can have the job post a Condition for order date + 1, and have order date condition also be an In condition for the job.

i want execute my previous days unexecute job first rather than today in Control-M

i am trying ordering my jobs into planing until jobs gets success,but when previous days jobs for that particular CTM table run then only today order jobs need to be run , i have added keep active for 10 days for each job.
thanks in advance
You can try adding an IN-CONDITION of the same job with PREV date, so that todays job will run only when yesterday's job has completed its run successfully.
If you want to run todays job even when yesterdays job fails, you can add a DO-STEP on failure, to create a condition which can be used by todays job to start running.

Autosys job to run every minute except on certain days

I'm looking for a way to run an autosys job every minute of the day except Sunday between 11:00 and 12:00. Is there a way to accomplish this without creating 3 jobs (one that runs Mon-Sat, one that runs Sunday until 11am, and one that runs Sunday after 12)?
You can do this with two jobs. One that runs from Monday-Saturday and one that runs on Sunday in which you can specify the run_window from 12:00-11:00.

Tivoli to Autosys

I am looking for a help in converting a IBM Tivoli script to Autosys since we have migrated from Tivoli to AUtosys.
Below is the script in Tivoli -
SCHEDULE SX On RUNCYCLE YEARLY VALIDFROM 02/01/2015 "FREQ=YEARLY;INTERVAL=1;"
UNTIL 0550 +5 DAYS
CARRYFORWARD
...
...
I need to convert this same script so that it can work in Autosys. Not sure, what Tivoli script means and what this Tivoli is doing and how I can convert it in run_calendar in AUtosys script
What about UNTIL and carryforward option ?
Thanks.
This is a TWS Schedule (a set of jobs) that is set to run once a year starting 02/01/2015. It will start on that day at new plan generation and will run until 05:50 am after 5 days. CARRYFORWARD means that this schedule will not disappear at new plan generation that comes everyday.
This is not a script per se, this is a container of jobs. The Autosys calendar must look like a yearly job.

Resources