Rerun job using sysout string?

Post Reply
User avatar
pone2332
Nouveau
Nouveau
Posts: 7
Joined: 03 Sep 2011 12:00

Rerun job using sysout string?

Post by pone2332 » 24 Mar 2014 6:05

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

User avatar
jCarlos
Nouveau
Nouveau
Posts: 36
Joined: 19 Jun 2013 12:00

Post by jCarlos » 24 Mar 2014 9:27

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

User avatar
pone2332
Nouveau
Nouveau
Posts: 7
Joined: 03 Sep 2011 12:00

Post by pone2332 » 27 Mar 2014 12:48

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.

Post Reply