View previous topic :: View next topic
|
Author |
Message |
prabhucs01 Warnings : 1 New User
Joined: 07 Mar 2005 Posts: 43
|
|
|
|
while writting jcl for sorting we will give the work files along with the input and output files
in some case we give one workfile and in some case 3 or 4.
which constraint detrmines the number of work files to be given. |
|
Back to top |
|
|
ankyhunk
Moderator
Joined: 05 May 2005 Posts: 98 Location: Navi Mumbai, India
|
|
|
|
I think the no. of work files depends on the number of fields on which the input file has to be sorted. i.e if the i/p file is to be sorted on 2 fields, 2 work files are required. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
The number of fields involved in the sort does not indicate quantity of work files. Input volume was the usual guide in the past along with sequence randomness of input. Spreading the work files across multiple volumes and devices expedited the sorting. With caching and physical dasd architecture shielded by logical architecture, I'm not sure there's any benefit other than handling the sheer volume of records.
Dave |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
For DFSORT, the number of work files required depends on the input filesize, the available memory, and the extent to which memory object sorting, hipersorting and data space sorting can be used.
For more information, see "Appendix A. Using Work Space" in "z/OS DFSORT Application Programming Guide" which you can access online at:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/A.0?DT=20050222160456 |
|
Back to top |
|
|
jinal_mca
New User
Joined: 05 Jan 2007 Posts: 22 Location: Pune, India
|
|
|
|
See when ever temporary storage is needed we need to take working file so in case of sorting even in merging working file is needed..
That is for our system use so that it can store any temporary data in it.
correct m if i m wrong but i m sure so dont wory.
cya |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
See when ever temporary storage is needed we need to take working file so in case of sorting even in merging working file is needed..
That is for our system use so that it can store any temporary data in it.
correct m if i m wrong but i m sure so dont wory. |
I would correct you more specifically if I understood what you were saying here, but I don't.
Work data sets (SORTWKdd) are only needed for a SORT application. They are not needed and are ignored if specified for a MERGE or COPY application. Work data sets for a SORT application can be dynamically allocated by DFSORT (recommended) or specified via DD statements. |
|
Back to top |
|
|
|