Can we sort the data with two key 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
G SHIVARANJANI
Participant
Posts: 137
Joined: Sun Jan 07, 2007 11:17 pm
Location: VISAKHAPATNAM

Can we sort the data with two key columns.

Post by G SHIVARANJANI »

Hi,


Cans we sort or join the data taking two columns as key columns in Join stage and sort stage.

if yes what should be the property set.

thanks,
Shivaranjani
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Yes. You will have to specify two join keys i.e give two "Key" properties and specify the two field names. Similarly for Sort. Specify both the keys in the "Key" property. Note that the key order specified in sort and join should be the same or you might get a warning.
mansoor_nb
Participant
Posts: 48
Joined: Wed Jun 01, 2005 7:10 am

Post by mansoor_nb »

yes you can sort or join the data using two columns. If the data to be joined between the two links then it should be hashed and sorted on the key columns and then the join should be made on the key columns and the partition type should be SAME.
kumar_j
Participant
Posts: 45
Joined: Mon Nov 28, 2005 2:43 am

Post by kumar_j »

U can
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

... but does U want to?
:roll:
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