There are 2 cyclic jobs A and B such that A is predecessor to B and A runs after every 2 minutes from end while B runs after every 1 minute from end. Problem is job B keeps on re running and failing even after one failure. I thought on adding 'ON STATEMENT * CODE NOTOK DO STOP CYCLIC '
in steps of job B.
Will this work? If not, what could be the workaround?
CODE = NOTOK
is possibly an issue.
ON/DO using the STATEMENT/CODE combination is usually something like -
ON
STATEMENT = *
CODE = *your literal error string in here*
DO
STOP CYCLIC
e.g. -
ON
STATEMENT = *
CODE = *requested file not file found*
DO
STOP CYCLIC
the CODE = field should be surrounded by asterisks.