Control - M scheduling a job hourly

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
User avatar
Phani
Nouveau
Nouveau
Posts: 4
Joined: 28 May 2012 12:00

Control - M scheduling a job hourly

Post by Phani » 29 May 2012 5:13

How to Schedule a job that run hourly using Control - M?
Can explain step by step ?

Admin007

Post by Admin007 » 05 Jun 2012 9:28

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.

User avatar
anirudhp
Nouveau
Nouveau
Posts: 5
Joined: 28 May 2012 12:00

Post by anirudhp » 14 May 2013 3:23

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.
Hi Admin007,

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.

User avatar
Manii
Nouveau
Nouveau
Posts: 46
Joined: 28 Jul 2011 12:00

Post by Manii » 15 May 2013 4:30

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

User avatar
anirudhp
Nouveau
Nouveau
Posts: 5
Joined: 28 May 2012 12:00

Post by anirudhp » 16 May 2013 6:06

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
Hi Mani,

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.

User avatar
Manii
Nouveau
Nouveau
Posts: 46
Joined: 28 Jul 2011 12:00

Post by Manii » 16 May 2013 5:20

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,
:idea: :idea: :idea:

Post Reply