multiple lookup

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
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

multiple lookup

Post by dnat »

HI,

I have two columns in the source that needs to be looked up to a single column in the reference. Can this be done in a single stage or we need to use multiple lookup stages.
Even if one of the lookups fail, i need that record in the reject link.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Neither will work given your requirement. You need a Transformer stage upstream of the lookup stage to combine the two columns appropriately into one. Then perform the lookup using that one.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

Post by dnat »

Ray, i didnt get what you are trying to say

In the input i have col A(Value xxx) and col B(Val yyy)

In the reference stage i have two rows with the following values

Key--Val
1 -- xxx
2 --yyy

Now i want to lookup Col A with val xxx in reference and Col B with Val yyy in reference.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

OK, clearly I did not understand what you had in mind. I understood you had one row in the reference, value xxxyyy.

Your clarified requirement needs two separate lookups.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You need 2 lookups but can be done in single stage.

Please try it out before posting.
Post Reply