Rank in DataStage

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
iamnagus
Participant
Posts: 48
Joined: Wed Sep 29, 2004 1:16 am

Rank in DataStage

Post by iamnagus »

I have input as

100
100
100
90
90
80
80
80

I want to give ranking for this as

100 1
100 1
100 1
90 2
90 2
80 3
80 3
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Rank is a display function. Of course you could do it. But your output is wrong. It should be:
100 1
100 1
100 1
90 4
90 4
80 6
80 6

You can read about tied ranks in any nonparametric statistics textbook.
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