OR operation in Look Up Stage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
deepa_shenoy
Participant
Posts: 95
Joined: Thu Sep 24, 2009 12:15 am
Location: India

OR operation in Look Up Stage

Post by deepa_shenoy »

Hi,

Is it possible to use a single Lookup stage for looking up two tables and allow the records to pass if its finds a match in either of the tables.

In other words, I want an OR operation to work on the looked up columns and not an AND operation.

Thanks in advance.

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

Post by ray.wurlod »

Yes and no. You can perform the two lookups, but you can not do either of AND or OR in a Lookup stage. The test must be in a downstream Transformer or Filter stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deepa_shenoy
Participant
Posts: 95
Joined: Thu Sep 24, 2009 12:15 am
Location: India

Post by deepa_shenoy »

For example, I look up Product code as well as Country code from two instances of a table using one Lookup Stage.

Now suppose Product code finds a match and Country code does not, will it pass the matching record?
Post Reply