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
To plane a job
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
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
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
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