Page 1 of 1

Recompiling aborted job in sequence automatically

Posted: Mon Nov 13, 2006 4:32 am
by saviop
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

Posted: Mon Nov 13, 2006 5:03 am
by DS_SUPPORT
You are having an option "Reset If required, then run" in the execution Action, Choose that option. It will reset the job.

Re: Recompiling aborted job in sequence automatically

Posted: Mon Nov 13, 2006 10:17 am
by kris
saviop wrote: We have a requirement that if any job aborts, the aborted job should recompile(or reset) without any manual intervention.
Hi Saviop,

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:
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
Hope this well help you.

Kris~