get unique columns

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
parilango
Participant
Posts: 10
Joined: Thu Jun 23, 2016 8:36 am

get unique columns

Post by parilango »

I have two files and I am getting few columns based on one common column.. but I want the unique records not based on the key column.

right now I am using sort stage and passing all the column name as key column in the hash partition. is this the right approach or do we have any better approach to get unique records from all the column
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Is that approach working for you?
-craig

"You can never have too many knives" -- Logan Nine Fingers
parilango
Participant
Posts: 10
Joined: Thu Jun 23, 2016 8:36 am

Post by parilango »

yeah it Is working. is there any other approach we can follow?
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

You can also use Sort stage and then Remove Duplicate stage. Leave the partitioning as Auto.
Post Reply