What are work-files in SORT and are they mandatory?

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
Aseem_Forum
Registered Member
Posts: 20
Joined: Tue Jul 16, 2013 7:24 pm

What are work-files in SORT and are they mandatory?

Post by Aseem_Forum »

Hi,

What are work-files in SORT and are they mandatory for every SORT Job? What is importance of work files in the SORT utility?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: What are work-files in SORT and are they mandatory?

Post by Robert Sample »

From the DFSORT Application Programming Guide manual:
A.1 Introduction When a sort application cannot be performed entirely in virtual storage, DFSORT must use work space. The amount of work space required depends on:
The amount of data being sorted
The amount of virtual storage available to DFSORT
The amount of Hiperspace available to DFSORT
The type of devices you use
The DFSORT functions and features you use (for example, VLSHRT, locale processing, EFS, and ALTSEQ can increase the amount of work space required).
There are three ways to supply work space for a DFSORT application:
Hiperspace
Dynamic allocation of work data sets
JCL allocation of work data sets.
A sort may not require work space at all -- it depends upon (a) how many records are to be sorted, and (b) how much memory is available to the system. If the sort requires work files, and they are not available in adequate number / size, the sort fails.
Aseem_Forum
Registered Member
Posts: 20
Joined: Tue Jul 16, 2013 7:24 pm

Re: What are work-files in SORT and are they mandatory?

Post by Aseem_Forum »

Thanks Robert, this is helpful.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”