sorting in sort stage Vs Transformer

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
reddy12
Participant
Posts: 99
Joined: Tue Aug 08, 2006 9:34 pm

sorting in sort stage Vs Transformer

Post by reddy12 »

dear experts,
i have a question.( parallel DS8/AIX5.3)

what is the difference between
sorting using a sort stage and
using a transfomer with hash partioning and checking the sort checkbox??


appreciate your help,
regards.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The sort stage gives you more options and control.
reddy12
Participant
Posts: 99
Joined: Tue Aug 08, 2006 9:34 pm

Post by reddy12 »

thanks for the Reply.

can you be more specific ???



Regards.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The implicit sort lets you choose key and order. Add a sort stage to your designer canvas and check which options you can specify there to see the difference.
reddy12
Participant
Posts: 99
Joined: Tue Aug 08, 2006 9:34 pm

Post by reddy12 »

does both the operators use the scratch space for sorting the data in both cases or only the sort uses the scratch space and transformer uses the resource disk???

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

Post by ray.wurlod »

All sort methods (explicit (Sort stage), implicit (input link) and inserted) use the same tsort operator. It's just that an explicit Sort stage gives you access to more of the operator's options.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

The sort stage also looks better - you can see that a sort is happening rather than hiding it away on the partitioning tab. If you are going to insert custom partitioning and sort options on the advanced tab I would recommend adding a job annotation to explain what you have done.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You do get a Sort link marker (unless, of course, you disable display of link markers).
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