Running and resetting jobs from within job control
Posted: Tue Apr 06, 2004 8:49 am
I created a job which purpose it is to call an underlying job n times (in a loop). I did this within the job control section of the job properties. This mechanism works fine, except if the underlying job aborts, because then the controlling job stops too.
Now I want to ensure that my controlling job calls the underlying job again (with different parameters)
I tried to use the RUNRESET instead of RUNNORMAL to call the underlying job, but then I got an errormessage stating that the underlying job had never been run.
So the question is : which statements should I include in the jobcontrol so that if the called job aborts, it can be called again (with different parameters) in the next iteration of the loop.
Now I want to ensure that my controlling job calls the underlying job again (with different parameters)
I tried to use the RUNRESET instead of RUNNORMAL to call the underlying job, but then I got an errormessage stating that the underlying job had never been run.
So the question is : which statements should I include in the jobcontrol so that if the called job aborts, it can be called again (with different parameters) in the next iteration of the loop.