Want to sort the data without using sort stage

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
s_porkalai
Participant
Posts: 38
Joined: Sun Mar 25, 2007 11:05 pm
Location: chennai

Want to sort the data without using sort stage

Post by s_porkalai »

Hi,

Anyone pls suggest me the way to sort the data without using sort stage. This was one of the interview questions i was faced with.

Thanks in advance
thanks & Regards
A.S.Porkalai Lakshmi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

And the best answer is "Why?"

The entire philosophy in parallel jobs is "one task one stage type". If you want to sort make it obvious to future developers, by using an explicit Sort stage.

There are two other ways within the ETL tool, and you can also use external methods.

Try a bit of research.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
s_porkalai
Participant
Posts: 38
Joined: Sun Mar 25, 2007 11:05 pm
Location: chennai

Post by s_porkalai »

Hi

This was an interview question i had faced. If you can solve it, please send me the answer.
thanks & Regards
A.S.Porkalai Lakshmi
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

through link sorting

1.select partitioning method and enable perform sort option in input tab in the perticulat stage properties.

or

2. implement bubble sort logic in transformer
Srinu Gadipudi
LenGreenwood
Premium Member
Premium Member
Posts: 37
Joined: Mon Dec 08, 2008 4:02 am
Location: Milton Keynes, UK

Post by LenGreenwood »

Setting sort options on the link is really only a GUI cosmetic difference, compared to having a Sort stage on the canvas. The compiled Parallel job will still have the same sort operator in it. And as Ray said, having a Sort stage clearly visible is better practice, really.
Post Reply