How to restart ETL job automatically when a job fails

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Mallayagari
Participant
Posts: 15
Joined: Tue Apr 20, 2004 3:10 am

How to restart ETL job automatically when a job fails

Post by Mallayagari »

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
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

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 :roll: )

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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

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. :cry:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply