Look-up

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
shirishareddy
Participant
Posts: 12
Joined: Mon Sep 08, 2008 12:40 am
Location: Hyderabad

Look-up

Post by shirishareddy »

How can i achive the Left outer join by using the Look-up stage?
Shirishareddy
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Set the Lookup Failed rule to "Continue" and make sure that columns on the reference input and columns on the output that are derived from these are all marked as Nullable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
algfr
Participant
Posts: 106
Joined: Fri Sep 09, 2005 7:42 am

Post by algfr »

Couldn't have answered better
algfr
Participant
Posts: 106
Joined: Fri Sep 09, 2005 7:42 am

Post by algfr »

Couldn't have answered better
reddysrc
Participant
Posts: 39
Joined: Mon May 30, 2005 3:19 pm

Re: Look-up

Post by reddysrc »

Apply this logic in constraints tab

Condition Not Met : Fail
Lookup Failure : Continue

then you will get the Leftouter join results .

thx
Rama
shirishareddy
Participant
Posts: 12
Joined: Mon Sep 08, 2008 12:40 am
Location: Hyderabad

Re: Look-up

Post by shirishareddy »

reddysrc wrote:Apply this logic in constraints tab

Condition Not Met : Fail
Lookup Failure : Continue

then you will get the Leftouter join results .

thx
Rama

If we set the Condition Not Met=FAIL, job will fail.I guess we need to give the Condition Not Met=DROP.Correct me if i am wrong
Shirishareddy
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Re: Look-up

Post by Kryt0n »

shirishareddy wrote:
If we set the Condition Not Met=FAIL, job will fail.I guess we need to give the Condition Not Met=DROP.Correct me if i am wrong
Condition not met is only relevant if you apply a condition (i.e. a condition to determine if the lookup should be done). If you aren't applying a condition, set this to whatever you like
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: Look-up

Post by ray.wurlod »

shirishareddy wrote:If we set the Condition Not Met=FAIL, job will fail.I guess we need to give the Condition Not Met=DROP.Correct me if i am wrong
You are wrong.

This is because the Condition Not Met rule is irrelevant to the original question.
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