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: 8057
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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