Suggest the job design

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
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Suggest the job design

Post by bkumar103 »

Hi,
I have to design a job for the following problem.

There are two table say table1 and table2. Table1 refrences table2 by Foreign key relationship.
Is there any possible way to load these two table simultaneously in one job?

Please suggest me any alternative.

Thanks in advance.

Birendra
Birendra
savis
Premium Member
Premium Member
Posts: 27
Joined: Tue Apr 15, 2008 11:06 pm

Post by savis »

Since table 1 references table2 by foreign key relationship, You cannot load both tables simultaneously.
Table 2 should be completely loaded before you start loading table 1.

Use a sequencer, load table 2 in a separate job. Once it is done, load table 2 in a second job.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not really. You have to ensure that the parent record (in the referenced table) is in place before writing any child record (in the referencing table).

The only exception is when you use the Slowly Changing Dimension stage (version 8.0 and later), which manages this for you.
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