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.
Running and resetting jobs from within job control
Moderators: chulett, rschirm, roy
Running and resetting jobs from within job control
Wim
___________
"Carpe Diem"
___________
"Carpe Diem"
I would lay a bet on that the poster has not detached the current job handle and re-attached a new handle. You need a new handle for every run, and must detach the old if you want to RESET the job.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle