Page 1 of 1

Rerun job using sysout string?

Posted: 24 Mar 2014 6:05
by pone2332
Hello All,

I would like to rerun a job when I receive a certain string in the sysout. Does the below look appropriate?

Code: Select all

On 
Statement: *
Code: *Error 999*
DO
Rerun

Posted: 24 Mar 2014 9:27
by jCarlos
just if your error code includes the '*'

you could use some DO NOTOK before DO rerun to notice everytime the job gets error and execute again so you notice if the error is recurrent and stop the infinite bucle [manually] that you are creating

Posted: 27 Mar 2014 12:48
by pone2332
Figured I would just use a max rerun of 2 which would only rerun the job once. The job already fails but exits with COMPSTAT=1 which it does for many types of errors but I only want to rerun in the case of two different types.