How to Schedule a job that run hourly using Control - M?
Can explain step by step ?
Control - M scheduling a job hourly
Create a new job definition, on the Execution tab > select the Cyclic Job > Set > Run every 60 minutes > All intervals are from the job's (Start, Target or End) choose your targeted interval > Complete job definition and save
This is v6.4. Most are relatively the same. It varies slightly for Mainframe jobs but still the basics, select Cyclic and set your interval.
This is v6.4. Most are relatively the same. It varies slightly for Mainframe jobs but still the basics, select Cyclic and set your interval.
Hi Admin007,Admin007 wrote:Create a new job definition, on the Execution tab > select the Cyclic Job > Set > Run every 60 minutes > All intervals are from the job's (Start, Target or End) choose your targeted interval > Complete job definition and save
This is v6.4. Most are relatively the same. It varies slightly for Mainframe jobs but still the basics, select Cyclic and set your interval.
The above said steps work good for a single job,(say A ).
But when i am trying to use more than two, i.e., A,B,C.. and give dependency like A-> B-> C-> .. then in this scenario, B is running twice, i.e.,
A runs.
B runs.
C and Also B runs.
This occurs every time for the interval I have given.
Dependency information is(IN and OUT conditions)
For job A - IN() OUT(A+) -- cyclic job set for every 5 mins
For job B - IN(A+) OUT(B+) -- cyclic job set for every 0 mins
For job C - IN(A+ and B+) OUT(A-,B-,C-) -- cyclic job set for every 0 mins
Please let me know how to handle this.
thanks in advance.
Hi,
If you want to run Job in sequence A--> B --> C
Then condition should be as below
For job A - IN() OUT(A+) -- cyclic job set for every 5 mins
For job B - IN(A+) OUT(B+,A-) -- cyclic job set for every 0 mins
For job C - IN(B+) OUT(B-) -- cyclic job set for every 0 mins
Now A is independent and will run every 5 Min , then it will trigger B once B is completed it will trigger C and loop will go on
Cheers ,
Chandramani
If you want to run Job in sequence A--> B --> C
Then condition should be as below
For job A - IN() OUT(A+) -- cyclic job set for every 5 mins
For job B - IN(A+) OUT(B+,A-) -- cyclic job set for every 0 mins
For job C - IN(B+) OUT(B-) -- cyclic job set for every 0 mins
Now A is independent and will run every 5 Min , then it will trigger B once B is completed it will trigger C and loop will go on
Cheers ,
Chandramani
Hi Mani,Manii wrote:Hi,
If you want to run Job in sequence A--> B --> C
Then condition should be as below
For job A - IN() OUT(A+) -- cyclic job set for every 5 mins
For job B - IN(A+) OUT(B+,A-) -- cyclic job set for every 0 mins
For job C - IN(B+) OUT(B-) -- cyclic job set for every 0 mins
Now A is independent and will run every 5 Min , then it will trigger B once B is completed it will trigger C and loop will go on
Cheers ,
Chandramani
Thanks for response, but it does not work well.
Have tried giving the conditions in similar way, but still the Job B runs twice..
Now solution I found was to give the cyclic job set for every 5 mins to all the Jobs A,B,C. Then the cycle runs correctly. job after job waiting for condition.
This was just for experiment sake..
In original scenario, I have 43 jobs,6 sub-tables under one smart table which are inter dependant like a spider web. The whole set is supposed to run for every 3 hours. And also later have to handle failures and stop the cyclic if needed..
I might try to put the solution I suggested above and see..
More suggestions are appreciated.
Thanks.
Hi anirudhp,
Create a Dummy Job - D which is running when you need to run the sequence of A--> B --> C
For Job D - IN() OUT (C+) -- C is dummy job which is time dependent and adding condition C+ to start the Job A
Now setup would be as follow :-
Then condition should be as below
For job A - IN(C+) OUT(A+, C- ) -- cyclic job set for every 5 mins
For job B - IN(A+) OUT(B+,A-) -- cyclic job set for every 0 mins dependent on Completion of Job A
For job C - IN(B+) OUT(C+, B-) -- cyclic job set for every 0 mins dependent on Completion of Job B
This will create looping of A --> B --> C --> A and avoid execution of any job without pre-requise condition
Hope this will work as u expected
Cheers,
Create a Dummy Job - D which is running when you need to run the sequence of A--> B --> C
For Job D - IN() OUT (C+) -- C is dummy job which is time dependent and adding condition C+ to start the Job A
Now setup would be as follow :-
Then condition should be as below
For job A - IN(C+) OUT(A+, C- ) -- cyclic job set for every 5 mins
For job B - IN(A+) OUT(B+,A-) -- cyclic job set for every 0 mins dependent on Completion of Job A
For job C - IN(B+) OUT(C+, B-) -- cyclic job set for every 0 mins dependent on Completion of Job B
This will create looping of A --> B --> C --> A and avoid execution of any job without pre-requise condition
Hope this will work as u expected
Cheers,