To plane a job

All questions about Control-M jobs definitions
Post Reply
User avatar
olivier2c
Nouveau
Nouveau
Posts: 11
Joined: 26 Jan 2011 12:00
Location: LYON

To plane a job

Post by olivier2c » 30 May 2013 10:30

In one job Control-M, I wish:

- Restart the job if it is in error (COMPSTAT> 0)
- Post a condition KO output during the second execution error

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

Post by Manii » 30 May 2013 3:55

Hi olivier2c,

Here is the solution for this.


Set maximum rerun under execution tab to 1

In step tab of job

On stmt=* CODE= COMPSTAT>0
Do = rerun

On stmt=* CODE=RERUNNO=1
Do Condition = JOB-OK ODAT +

Also you need to out condition under condition tab , so if job completed ok it will add the condition

regards,
Mani

User avatar
olivier2c
Nouveau
Nouveau
Posts: 11
Joined: 26 Jan 2011 12:00
Location: LYON

Post by olivier2c » 31 May 2013 9:20

Hello

Thank you for responding.

but I like to post a KO OUT COND ONLY if the second run of my job is KO

in your proposed solution, the condition of KO output will be posted even if the job is OK in the second pass ...

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

Post by Manii » 31 May 2013 8:47

HI olivier2c,

for this just do

Set maximum rerun under execution tab to 1

In step tab of job

On stmt=* CODE= COMPSTAT>0
Do = rerun

Set Out condition in Condition tab.

In this case JOB-OK condition will be added only if job completed successfully.

and it will attempt to rerun only once when failed as Max rerun is set to 1

hope this help

Regrds,
Manii

Post Reply