I am reaching to SME on the subject after trying to figure out the solution of below scenario. I have a very specific requirement:
1) Say I have a schedule called SCH1, having 3 jobs JOB1, JOB2 and JOB3 like:
Schedule S1
JOB1
JOB2
FOLLOWS JOB1
JOB3
FOLLOWS JOB2
END
2) The JOB1 is calling a shell script. 3) Now if JOB1 shell script returns a code 0 – it is successful and execute JOB2 and JOB3. 4) If shell script returns code is anything other than 0, Still the JOB1 should not abend; but all other job JOB2 and JOB3 should be skipped (or completed without run); and schedule should be marked successful.
I got below link online, which suggest that this should be possible. But when I refer to syntax for Job/Schedule definition; I am not able to figure out that how it should be written.
In the job syntax, it looks like that below can do the trick, but not so sure.
[rccondsucc "Success Condition"]
[recovery
{stop | continue | rerun}
[after [workstation#]jobname]
[abendprompt “text”] ]
Conditional Dependency:
Job syntax:
Schedule syntax:
I would say this is not possible.
With RCCONDSUCC you can fine tune the status of a job (SUCC or ABEND) depending on it's return code. This just means you are not limited to RC = 0 = SUCC or RC > 0 = ABEND.
With RECOVERY you can specify which action should be taken only when the JOB is in ABEND.
Here you want to force a JOB to SUCC and specify a RECOVERY....