View previous topic :: View next topic
|
Author |
Message |
sambasivarao
New User
Joined: 10 Jul 2006 Posts: 47 Location: Bangalore
|
|
|
|
Hi all,
Can you please let me know How many work files we need to use for Sorting. On what basis we will decide these many work files we need to use and what is the minimum fields or minimum length we need to use for sorting?
can you please clarify regarding this .
Thanks in advance for your help.
Thanks and Regards,
RSSRAO. |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
Back to top |
|
|
vicky10001 Warnings : 1 Active User
Joined: 13 Jul 2005 Posts: 136
|
|
|
|
I think need to use 12 work files
//SORTWK01 DD SPACE=(CYL,(50,50),,,ROUND),UNIT=SYSDA
//SORTWK02 DD SPACE=(CYL,(50,50),,,ROUND),UNIT=SYSDA
--------------------
//SORTWK12 DD SPACE=(CYL,(50,50),,,ROUND),UNIT=SYSDA
Please find the space and unit |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
I think need to use 12 work files |
Huh? Where did you get that from? Do you think you need 12 work data sets for sorting 5 records and sorting 500,000 records and sorting 5,000,000 records? That makes absolutely no sense.
As Parikshit correctly stated, the amount of work space needed depends on the amount of data to be sorted. It also depends on the resources available for a particular run. For example, DFSORT can use memory objects, expanded storage or data space when appropriate along with virtual storage, which can reduce the amount of work space needed or even eliminate it entirely. That's why we recommend using DFSORT's dynamic allocation feature instead of specifying SORTWKdd DDs. Dynamic allocation allows DFSORT to adjust the work space it allocates automatically for each particular DFSORT run. |
|
Back to top |
|
|
sambasivarao
New User
Joined: 10 Jul 2006 Posts: 47 Location: Bangalore
|
|
|
|
Hi Frank,
Thanks alot for sharing valuable info.
Thanks and Regards,
Rssrao. |
|
Back to top |
|
|
|