Help with a lookup Logic

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
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Help with a lookup Logic

Post by mac4rfree85 »

Hi Guys,

I want to create three datasets from lookup.
Dataset1. Records present in primary and not in Reference.
Dataset2. Records present in both primary and Reference.
Dataset3. Records present in Reference and not in primary.

Can somebody help me with this.

Cheers!!!!
Last edited by mac4rfree85 on Wed May 18, 2011 8:08 am, edited 1 time in total.
Mac4rfree
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

Use Join stage with type as FULL OUTER.
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Post by mac4rfree85 »

Actually i need three datasets and not all the recrods in one dataset.
I have modified my intial post..

The Change capture stage should be able to get this results,, am just guessing need to work on it..
Mac4rfree
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Join stage (full outer) and change capture stage are both suitable. Both stages will produce 1 virtual dataset as output which you'll have to divide into 3 datasets using another stage (e.g. transformer).

Mike
Sampath
Participant
Posts: 21
Joined: Tue Apr 05, 2005 2:03 am

Re: Help with a lookup Logic

Post by Sampath »

use In lookup Multi link it will give all records from Primary and ref
Regards,
Sampath
Sampath
Participant
Posts: 21
Joined: Tue Apr 05, 2005 2:03 am

Re: Help with a lookup Logic

Post by Sampath »

use In lookup Multi link it will give all records from Primary and ref
Regards,
Sampath
Sampath
Participant
Posts: 21
Joined: Tue Apr 05, 2005 2:03 am

Re: Help with a lookup Logic

Post by Sampath »

use In lookup Multi link it will give all records from Primary and ref
Regards,
Sampath
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Full outer join. Transformer or Filter with three outputs testing whether stream key is null, reference key is null or neither is null.
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