Job Restartability

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vijayrc
Participant
Posts: 197
Joined: Sun Apr 02, 2006 10:31 am
Location: NJ

Job Restartability

Post by vijayrc »

I read thru the manual, but haven't gotten any conclusive answer to this:
I have a job with few stages in it. It processes quite a large volume of records. If the job fails after some interval, is there a feature in Datastage that would allow re-startability from 'that' point , and not from the beginning of the Job....???
PS: I'm not taking of restartability in a Job Sequence [say 5 jobs, and 3rd fails, and restarting from 3rd again....], but there's only one Job, and it fails mid-way, and how do we go about re-starting from 'where' it lefg?
Sorry if I have confused, but this is the best I can put forth.
Thanks
Vijay
Last edited by vijayrc on Wed Aug 09, 2006 2:50 pm, edited 1 time in total.
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

You will have to include your Job in a JobSequence(create one) and then in the Job Properties of the Job Sequence you will find a property "Add checkpoints so sequence is restartable on failure". Check that and also explore about it in the manual. That is the starting point.
Kris

Where's the "Any" key?-Homer Simpson
vijayrc
Participant
Posts: 197
Joined: Sun Apr 02, 2006 10:31 am
Location: NJ

Post by vijayrc »

kris007 wrote:You will have to include your Job in a JobSequence(create one) and then in the Job Properties of the Job Sequence you will find a property "Add checkpoints so sequence is restartable on failure". Check that and also explore about it in the manual. That is the starting point.
Thanks Kris, But here's from the Manual, and it says for Job-Sequence. But how does it apply for a Single Job ???
Add checkpoints so sequence is restartable on failure.
Select this to enable restarting for this job sequence. If you have
enabled this feature on a project-wide basis in the DataStage
Administrator, this check box is selected by default when the
sequence is first created.
And I think I am answering my own question: Data Set stages should be used to create restart points in the
event that a job or sequence needs to be rerun. But, because data
sets are platform and configuration specific, they should not be
used for long-term backup and recovery of source data.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

A sequence can be made restartable, but I doubt if a single job can be restartable, if it aborts mid-way.

Again it depends on what your job is performing....Has it done what you want it to do...

If your load has failed at a certain point, you could run your job again giving @INPUTROW > xxx as a constraint.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
vijayrc
Participant
Posts: 197
Joined: Sun Apr 02, 2006 10:31 am
Location: NJ

Post by vijayrc »

narasimha wrote:A sequence can be made restartable, but I doubt if a single job can be restartable, if it aborts mid-way.

Again it depends on what your job is performing....Has it done what you want it to do...

If your load has failed at a certain point, you could run your job again giving @INPUTROW > xxx as a constraint.
Thanks Narasimha
That's what was my understanding...I haven't given it a try, but a discussion on restartabilty popped up, and while discussing this was brought up and I'm researching within a single job, on how restartabilty is done...!! Any thoughts on this is much appreciated.
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Post by meena »

Hi
Narasimha wrote "If your load has failed at a certain point, you could run your job again giving @INPUTROW > xxx as a constraint" .
True it possible to run if know the value else no..Probably you have to write a routine for restartability but I really doubt whether it is possible or not .... trying for an :idea:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A job sequence can, of course, contain just a single Job Activity. The run method of the job can be set to "reset if required, then run". Of course, the automatic restart capabilities of that sequence (skip earlier successful activities) is wasted, but you would still, nonetheless (unless you caused the job sequence itself to abort) have a restartable job sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijayrc
Participant
Posts: 197
Joined: Sun Apr 02, 2006 10:31 am
Location: NJ

Post by vijayrc »

ray.wurlod wrote:A job sequence can, of course, contain just a single Job Activity. The run method of the job can be set to "reset if required, then run". Of course, the automatic restart capabilities of that sequen ...
Ray,
Thanks for the response...But I couldonly read part of your response !?!?
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

vijayrc wrote:Ray,
Thanks for the response...But I couldonly read part of your response !?!?
You have to be charter member to read fully.
splayer
Charter Member
Charter Member
Posts: 502
Joined: Mon Apr 12, 2004 5:01 pm

Post by splayer »

ray, I just have a question. The OP has one job in his sequencer. So are you saying that there is no way to restart from the point the job aborted? Let's say, his job inserts 10million rows into a table usually. However, during one run, after 5 million rows, the job aborts. How would he restart after 5 million rows? Is it possible? What if he had 2 jobs in his sequencer and this was the second job?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Certainly possible. But nothing out of the box other than commiting at all or none. This methodology has been discussed here before. Try a search.
As for the two jobs in the sequence job and this being the second job, that is the basic restartability provided by the sequence job. Its certainly achievable by a mere couple of clicks in the job properties.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, the Sequence job only knows which activity to restart with. If you need a job to restart internally from 'the point where it left off' you need to build that functionality into the job itself.

I know how I've done it in Server jobs, PX jobs on the other hand... [shrug]
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply