HOW TO RESTART THE JOB

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
Sathish321
Participant
Posts: 8
Joined: Tue Jan 30, 2007 11:22 pm
Location: Chennai
Contact:

HOW TO RESTART THE JOB

Post by Sathish321 »

Hi
How can I restart the job, if job get aborted after loding some data into DB.
I need to start the job from where the last record loaded.

Thanks
Sathish
Yuan_Edward
Participant
Posts: 73
Joined: Tue May 10, 2005 6:21 pm
Location: Sydney

Re: HOW TO RESTART THE JOB

Post by Yuan_Edward »

Well, it depends on your requirement and preference.

Some of my options will be:
1. truncate and reload the whole
2. Replace/overwrite
3. Take the whole load as a single transaction
4. Do a lookup and only load the rest of records when reloading
5. More...
Sathish321 wrote:Hi
How can I restart the job, if job get aborted after loding some data into DB.
I need to start the job from where the last record loaded.

Thanks
Sathish
Last edited by Yuan_Edward on Tue Mar 13, 2007 5:20 am, edited 1 time in total.
Edward Yuan
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Job by itself doesn't have check point restart on record wise, but you can built you own logic.
Always do a select Max(key) from your target and based on the result, you can select the source. But since there is not details given on how and what is the source extract, let me assume that, it will have unique key for each run.
Make sure you have record wise commit.
To get more clear details, you need to need to explain about the source data and load logic.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

If your data volume is low, set the transaction size to 0. This way the data will be committed only after successful completion of the job.
Is this a server job or a px job?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply