Removing Duplicates ---Uncommon Scenario

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

kumar444
Premium Member
Premium Member
Posts: 62
Joined: Wed Jan 12, 2011 10:01 am

Post by kumar444 »

I am stuck at this case finally:

Code: Select all

id          bid_no
200       AC634
200       AC455
I need to extract above two records from the remaining records,which are different from other cases.

The rule is :
if ids are equal , i need to check if their bid_nos start With AC but numerical is not equal .
In this case 634<>455.

Can we acheive this? If so how. Thanks...
-------------------------------------------
Kumar
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Yes, that is the condition you need to give using stage variables.

1) sv1 = sv2
2) sv2 = in.colname
3) sv3 (in.desc1=in.desc2)

Rest you need to try.

DS User
Post Reply