Datastage requirement

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
dsdev2008
Participant
Posts: 1
Joined: Tue Jan 15, 2013 3:03 pm

Datastage requirement

Post by dsdev2008 »

Hi All,

I am new to datastage and I am working on the following requirement.
I have source data and I have to sort this data in a descending order and provide the ranks for only top 5 . But the data can contain zeroes also. If the colB =0 then use another column to get the rank.

Please help me in doing this . I appreciate it.

Thanks
--DSDEV
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

To my way of thinking, RANK is a display function, not something that an ETL tool should be asked to do.

It is possible, which a Search of DSXchange will reveal.

Begin by formulating your complete logic in English - this should readily translate into operations in the ETL job itself.
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