Hi,
We have a series of jobs in a sequence. We have a requirement that if any job aborts, the aborted job should recompile(or reset) without any manual intervention.
Pls help.
Thnx,
Savio
Recompiling aborted job in sequence automatically
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 232
- Joined: Fri Aug 04, 2006 1:20 am
- Location: Bangalore
Re: Recompiling aborted job in sequence automatically
Hi Saviop,saviop wrote: We have a requirement that if any job aborts, the aborted job should recompile(or reset) without any manual intervention.
How are you calling these jobs? From shell scripts or sequencer jobs?
If sequencer jobs, as DS_SUPPORT mentioned, use Re-set and Run.
If you are using dsjob command, you can run with normal mode and then check the return code and re-set if required using dsjob with RESET mode.
You can find very nice documentation in Online Manuals on dsjob and its options and usage.
Here is an example pseudo code:
Hope this well help you.Call in Normal mode
dsjob -run -mode NORMAL -wait -jobstatus $DSServer $DSJob
Check for the return code
ReturnCode=$?
If necessary call in RESET mode
dsjob -run -mode RESET -wait -jobstatus $DSServer $DSJob
Kris~
~Kris