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

Can we do the sort without workfile


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Dec 10, 2009 6:00 pm
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 Developer


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

PostPosted: Thu Dec 10, 2009 11:20 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top