IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Query on Sorting TSQ Data


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dallasmavs

New User


Joined: 17 Mar 2005
Posts: 3

PostPosted: Fri Jul 08, 2005 10:01 pm
Reply with quote

have a TSQ which is populated from the database, want to give user the option to sort the TSQ and re-display the data.

One option is re-fetch the data from the database and display the screen, then I am doing lot of IO's when I have all the information in the TSQ.

Don't want to bubble sort, can not use sort-in and sort-out as this is not a batch module.

Can not use indexed option as I have to populate the data into an array in ascending or descending.

Cannot use temporary db2 tables as it will go away after each session.

Any ideas?
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Sun Jul 10, 2005 2:58 am
Reply with quote

I think,

The best option would be to write your own sort routine.
Heapsort or Quicksort can be a good choice.

Let me know if you have any better options in this case.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top