Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we do the sort without workfile

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Thu Dec 10, 2009 2:31 pm    Post subject: Can we do the sort without workfile
Reply with quote

Hi All,


I have a doubt, can we do a sort without using the work file/temp file?

If yes, then how and in what conditions do we really need workfile/temp file.


Thanks in advance. !!
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Thu Dec 10, 2009 6:00 pm    Post subject:
Reply with quote

All the sort packages tend to try to do the sort in memory first. If there is more data than will fit in memory, work files will be required. So the answer to your question is that it depends upon how many records you're trying to sort, how big they are, how much memory the sort package can allocate, and so forth.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu Dec 10, 2009 11:20 pm    Post subject:
Reply with quote

Dave,

As Robert says, the answer is "it depends". DFSORT can choose among combinations of memory, memory objects, hiperspace, data space and work data sets to do a sort. Which combination is chosen depends on various factors such as the size of the input file. It's best to always give DFSORT the option of using work data sets if they are needed. By default, DFSORT will dynamically allocate work data sets if they may be needed. You would actually have to take specific actions to prevent DFSORT from using work data sets if it may need them.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us