How to implement user sort ?

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
passtosekar
Participant
Posts: 3
Joined: Tue Nov 10, 2009 2:46 am

How to implement user sort ?

Post by passtosekar »

Hi,
My input records are as like below,
South,
North,
West,
East.

I need below mentioned output in a sequential file.

West,
North,
East,
South.

Please help me to achive this.

Regards,
Sekar.
mystuff
Premium Member
Premium Member
Posts: 200
Joined: Wed Apr 11, 2007 2:06 pm

Re: How to implement user sort ?

Post by mystuff »

Weigh each field with a rank and then sort based on the rank given to that field.
Post Reply