next job will fail automatically once previous job completed

Tools and several solutions to manage Control-M products
Post Reply
User avatar
nakul
Nouveau
Nouveau
Posts: 29
Joined: 09 May 2010 12:00

next job will fail automatically once previous job completed

Post by nakul » 17 Jun 2011 7:57

Suppose i have 2 jobs A and B , B is deopendent on A now i want if A is triggered successfully then job B will get failed automatically .... is there any configuration , parameter of any other settings pls reply...

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 17 Jun 2011 6:25

I don't understand "if A is triggered successfully".

Do you mean if job X kicks of job A then job B should fail? Or you mean if job A finishes successfully job B should fail?

For either case, can job B be left waiting and removed by end of day, rather than let it fail?

User avatar
nakul
Nouveau
Nouveau
Posts: 29
Joined: 09 May 2010 12:00

Post by nakul » 20 Jun 2011 11:12

Yes after the completion of A the job B should be failed.

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 20 Jun 2011 6:22

You can have two jobs: job B1 will complete normally and job B2 will complete with failure. Job A can order B1 or B2 using STEP according to A's status.

User avatar
nakul
Nouveau
Nouveau
Posts: 29
Joined: 09 May 2010 12:00

Post by nakul » 21 Jun 2011 9:20

is there any way to pass parameter from A to B and according to that B will execute with if else stmt as per the scenario.

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 22 Jun 2011 3:01

Control-M does not have direct mechanism to pass parameter between two jobs. The closest option is to define a global AutoEdit variable in JobA for JobB to consume. Outside of Control-M, JobA can write something into a file for JobB to read, provided JobA and JobB have access to the same file and writing and reading the same file be part of corresponding job script.

User avatar
nakul
Nouveau
Nouveau
Posts: 29
Joined: 09 May 2010 12:00

Post by nakul » 22 Jun 2011 9:08

thnx

Post Reply