Logic

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
iwin
Premium Member
Premium Member
Posts: 99
Joined: Mon Apr 11, 2005 9:20 pm

Logic

Post by iwin »

Hi All,
I have 3 different links with different column names but all have cust_id as key column and i have to merge them.

INPUT:

Source link1:
Cust_id
Col1
Col2

Source link2:
Cust_id
Col3
Col4

source link3:
Cust_id
Col5


OUTPUT:

Target Link:
Cust_id
Col1
Col2
Col3
Col4
Col5
Col6


The data can come from all the links or any link. Any suggestions how to do it. I tried to use look-up and merge stage but it doesnt work. One of the issue is how to pull the correct cust-id from the link where data come in.

Thanks for Any suggestion
Every person you meet knows something you don't, Learn from them.
-- H. Jackson Brown
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Join stage would seem to be what you need. Either one Join stage with three inputs or two cascaded two-input Join stages. Include a source indicator (such as file name) in a full outer join so that you know from which source the row came.
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