How can I provide restart instructions in the ETL program when a job/step fails. Can it be done with datastage?? if not how can it be done.
TIA
Macks
How to restart ETL job automatically when a job fails
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 15
- Joined: Tue Apr 20, 2004 3:10 am
Hi,
to reset a job you can choose :
1. run the job in reset mode; via dsrunjob or dsjob command line.
2. if you use basic code you can issue a DSPrepareJob(<jobhandle>) once you attached the job and before you run it.
3. if you use job sequences to run other jobs simply use the reset if required then run option in the JobActivity stage.
(just noticed this is a parallel question, not sure if works the same as server jobs
)
IHTH,
to reset a job you can choose :
1. run the job in reset mode; via dsrunjob or dsjob command line.
2. if you use basic code you can issue a DSPrepareJob(<jobhandle>) once you attached the job and before you run it.
3. if you use job sequences to run other jobs simply use the reset if required then run option in the JobActivity stage.
(just noticed this is a parallel question, not sure if works the same as server jobs
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)
One of the new features in version 7.1 (not 7.0.1) of DataStage is some sort of automatic Checkpoint / Restart capability they have added to Sequence jobs. From what I understand (I haven't seen it yet) this would help get a series of jobs restarted from the correct job... getting the restarting job to "pick up where it left off" is a whole 'nuther ball game.
Much like Roy, I have no idea if any of this applies to PX jobs.![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
Much like Roy, I have no idea if any of this applies to PX jobs.
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
No job, whether server, parallel or mainframe, has the ability to restart itself.
Restart capability must be implemented in a job control routine of some kind (whether build from scratch, from a Batch or from a job sequence, or using an external scripting language).
Restart capability must be implemented in a job control routine of some kind (whether build from scratch, from a Batch or from a job sequence, or using an external scripting language).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.