how to remove duplicates in transformer stage..?

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
balaya.ds
Participant
Posts: 27
Joined: Fri Dec 25, 2009 10:50 pm

how to remove duplicates in transformer stage..?

Post by balaya.ds »

Please provide solution for above query?
Sudheer
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

search for "remove Duplicate"
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use pairs of stage variables (the technique has been discussed here often) to detect change in the sorted keys - here "keys" has the same meaning as in the Remove Duplicates stage - and set a flag that can be used to constrain the output.

:idea:
Get yourself a premium membership so you can read all of the above.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Re: how ro remove duplicates in transformer stage..?

Post by nirdesh2 »

Partition the Data in Transformer stage and use unique record option. You can remove duplicate record.
Nirdesh Kumar
v83rahul
Participant
Posts: 2
Joined: Mon Oct 13, 2008 5:17 am
Location: Bangkok

Post by v83rahul »

Partition the Data in Transformer stage using hash partition and use unique record option.
nvdlrao
Participant
Posts: 8
Joined: Tue Jul 27, 2010 12:28 pm

Post by nvdlrao »

You could remove duplicates using transformer stage 1) with the help of stage variables 2) by doing unique/stable sort.
vdlrao
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

No need for stable...
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Post Reply