capture duplicate

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
rajee1234
Participant
Posts: 5
Joined: Wed Sep 16, 2009 10:32 pm
Location: india
Contact:

capture duplicate

Post by rajee1234 »

Hi,

I need to capture the duplicate record to the seperate table......only by using transformer stage

Thanks in advance
raj
jammala.ds
Participant
Posts: 38
Joined: Thu Jul 03, 2008 3:42 am

Using sortstage. capture the duplecate records.

Post by jammala.ds »

Using sortstage. capture the duplecate records.

Thanks
jk
rajee1234
Participant
Posts: 5
Joined: Wed Sep 16, 2009 10:32 pm
Location: india
Contact:

Post by rajee1234 »

My requirement is need to use only transformer stage..... for Capturing duplicate records........

can u help me with some logic

Thanks in advance
raj
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You cannot capture duplicates using transformer alone.

Did you check with your interviewer and ask them for a solution ? :roll:
rajee1234
Participant
Posts: 5
Joined: Wed Sep 16, 2009 10:32 pm
Location: india
Contact:

Post by rajee1234 »

we need to apply some logic in transformer stage using stage variable... i am not sure with the logic used.....

source file target 1 target 2
102 100 102
106 102 106
108 106
102 108
106
100

can any one tell me some logic for this....
raj
nbelwadk
Participant
Posts: 1
Joined: Mon Apr 06, 2009 4:57 am
Location: Mumbai

Post by nbelwadk »

we can do this by using key change column function in sort stage followed by a lookup stage.
Last edited by nbelwadk on Thu Sep 24, 2009 6:21 am, edited 3 times in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

nbelwadk wrote:y dont u use remove duplicate stage nd dn a compare stage.
aneways transformer degrades the performance
:!: Two points, last one first:

Transformer performance has not been an issue for quite some time, that was addressed years ago, so your advice while good intentioned is out of date.

Please use a professional level of English here, this isn't your cell phone so take an extra second to spell out your words and check for typos. Not everyone's language of choice here is English, please keep that in mind.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I can't tell from your example what the "duplicates" would be. General advice - sort by the grouping key(s) then check for duplicates using stage variables. First time you see a 'group' is ok, if you see the same one again, not so ok and you should be able to discard or capture them fairly easily via a constraint.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You have marked the job type as TX. Please verify whether this is correct. From your terminology I doubt that it is.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I too assumed that was not really the case.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply