tsort and psort

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

qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

tsort and psort

Post by qt_ky »

This is a bit of a trivia question, and I only know the answer to #2:

1. What does the T stand for in the tsort operator, and how do you know?

2. What does the P stand for in the psort operator?
Choose a job you love, and you will never have to work a day in your life. - Confucius
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

What is a psort ? :?:
Nag
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A psort is a sort with a silent p, as in swimming.
:lol:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Don't you mean pswimming? :wink:

Sorry. Me, I have no idea what either letter stands for... waiting to be educated.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Well, pshah...

p for partition sort

t: (a hint) if you know about the parallel engine's history, this should come pretty easy ;)
- james wiles


All generalizations are false, including this one - Mark Twain.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Tsort is a place on Terry Pratchett's Discworld.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

tsort is also a *nix utility
- james wiles


All generalizations are false, including this one - Mark Twain.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Total sort...

Topological sort...

http://en.wikipedia.org/wiki/Torrent_Systems :idea:

http://en.wikipedia.org/wiki/Timsort

Either tsort or psort can be used to sort a partition, so I was wondering how the T and P designators actually came about. The docs confuse the matter further by associating psort with the UNIX sort program. Maybe it should have been called usort; it seems the P is meaningless. Older docs mention psort with the Syncsort utility also.
Choose a job you love, and you will never have to work a day in your life. - Confucius
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

May be the psort (partition sort) was developed earlier and since it could sort partitioned data it was called psort. Then tsort operator came in which had capability of performing total sort in addition to partition sort and hence it was called tsort.

This is just based on my assumption as in documentaion it is written as "Because of the additional capabilities in tsort, it is recommended that you use this operator rather than psort." Also it uses the sort engine of its own.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

According to the product guides:

psort
Yes, "p" for partition sort.

tsort
And, "t" does not appear to be documented what it stands for. We can speculate until the cows come home... Anyone know if it's documented?
Choose a job you love, and you will never have to work a day in your life. - Confucius
nikhil_bhasin
Participant
Posts: 50
Joined: Tue Jan 19, 2010 4:14 am

Post by nikhil_bhasin »

Hi, can anyone please describe the differences between tsort and psort operators. What i am looking for is exactly what conditions lead to insertion of psort operator and how it works.
BI-RMA
Premium Member
Premium Member
Posts: 463
Joined: Sun Nov 01, 2009 3:55 pm
Location: Hamburg

Post by BI-RMA »

psort will never be inserted by DataStage because tsort is the preferred option for sorting.

No clue to the naming, either. Suggest "true"-sort, as in "the-one-and-only-true-sorting-utility".
"It is not the lucky ones are grateful.
There are the grateful those are happy." Francis Bacon
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Tony has inferred above that the "t" stands for "Torrent".
-craig

"You can never have too many knives" -- Logan Nine Fingers
BI-RMA
Premium Member
Premium Member
Posts: 463
Joined: Sun Nov 01, 2009 3:55 pm
Location: Hamburg

Post by BI-RMA »

Is Tony the guy who calls himself Eric?

And did you say "Torrent" or "Torment"??? :?


:lol:
"It is not the lucky ones are grateful.
There are the grateful those are happy." Francis Bacon
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

James, Eric, Tony... somebody inferred it up there somewhere. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply