How to load data into Dimension table

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
swathi.mekala
Participant
Posts: 3
Joined: Mon Dec 04, 2006 10:30 pm
Contact:

How to load data into Dimension table

Post by swathi.mekala »

Hi all,

How to load data into Dimension table.
The following is my requirement
We have Dimension table as Gl_Acct_Dimnsn ,it contains columns like Gl_Acct_Id,Gl_Acct_Nbr,Gl_Acct_Grp etc.
We have to load the Gl_Acct_Nbr from source table (which contains column Gl_Acct_Nbr) to Gl_Acct_Dimnsn table.
I have to lookup on same Gl_Acct_Dimnsn table to ignore duplicate values.
The lookup table and target table(Dimension table) are same.

Thanks
Swathi
sushanth
Participant
Posts: 18
Joined: Sat Oct 09, 2004 10:13 am
Location: Malaysia
Contact:

Re: How to load data into Dimension table

Post by sushanth »

swathi.mekala wrote:Hi all,

How to load data into Dimension table.
The following is my requirement
We have Dimension table as Gl_Acct_Dimnsn ,it contains columns like Gl_Acct_Id,Gl_Acct_Nbr,Gl_Acct_Grp etc.
We have to load the Gl_Acct_Nbr from source table (which contains column Gl_Acct_Nbr) to Gl_Acct_Dimnsn table.
I have to lookup on same Gl_Acct_Dimnsn table to ignore duplicate values.
The lookup table and target table(Dimension table) are same.

Thanks
Swathi
Hi,

If the target DIM table is with data prior to load,then you take
reference look up with this table in one job, once all the non duplicate records collected then load the Target DIM table in a second job.

Regards
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Use CDC.
COPY code can be ignored. Rest of the codes can have their corresponding DML statement.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can use any of the Change Capture, Compare or Difference stages to compare your new data with the existing dimension table. You don't need to build a lookup table.
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