How to handle reject in Join

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
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

How to handle reject in Join

Post by srai »

Hi,

I have join two tables based on id columns using JOIN stage.

There are some reject means after joining two table some records are not satisfying the joining criteria . I would like to capture those records.
Any tips how to handle the rejects after joining?
tehavele
Premium Member
Premium Member
Posts: 79
Joined: Wed Nov 12, 2008 5:41 am
Location: Melbourne

Post by tehavele »

Use Transformer stage after join stage. Capture reject rows using Null handling function IsNull.
Tejas
satish.raghavan
Participant
Posts: 22
Joined: Tue Jul 21, 2009 4:45 am
Location: Chennai
Contact:

Post by satish.raghavan »

Data's rejected in join stage cannot pass through the transformer after the join stage for the records which have been rejected initially.
If you are comparing two tables then you can use the Lookup stage for capturing the rejected records else try to capture the NULL records using the transformer before the join stage.
Thanks & regards

Satish R
syeed
Participant
Posts: 19
Joined: Fri Jan 19, 2007 12:35 am
Location: bangalore

Post by syeed »

if you are dealing with huge amount of data then use Merge Stage to capture the unmatching records.

Thanks,
Waseem.
Syed
---------
Wait and Watch
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's no such thing as rejects from a join - there's only the result of the join. It's the same in DataStage as it is in SQL.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Post by Kryt0n »

What you are looking for is an outer join... left/right/full depending on which side you are interested in finding these "rejects", then in subsequent stage identify those where left/right data is missing

or alternatively use the lookup with a fail condition to a new link
Post Reply