Lookup Stage - Multiple Keys

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
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

Lookup Stage - Multiple Keys

Post by Raftsman »

Is it possible to search on multiple keys within one lookup stage. I use the same code table for two different fields from the same source

i.e. field1 = code.fieldA or
field2 = code.fieldA

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can not do the OR in a Lookup stage. You can do two separate lookups to the same source, and join the two result sets downstream.
This is more cleanly designed using two separate Lookup stages.
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