pjnithin
Active User
Joined: 22 Dec 2005 Posts: 116
|
|
|
|
Why do we use SORTWK statements when invoking a sort routine???
and how many SORTWK statements shud be there like
SORTWK33 DD SPACE=(CYL,(50)),
UNIT=SYSDA
SORTWK34 DD SPACE=(CYL,(50)),
UNIT=SYSDA
SORTWK35 DD SPACE=(CYL,(50)),
UNIT=SYSDA
SORTWK36 DD SPACE=(CYL,(50)),
UNIT=SYSDA
SORTWK37 DD SPACE=(CYL,(50)),
UNIT=SYSDA |
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
With a Sort, work data sets may be needed if all of the records cannot be sorted without them. Work data sets can be allocated using JCL SORTWKdd DD statements or dynamically. Dynamic allocation is preferred since its more flexible. So it's best NOT to use JCL SORTWKdd DD statements. Remove them and let DFSORT allocate the work data sets dynamically as needed.
For more information on DFSORT's use of work data sets, see:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/A.0?DT=20050222160456 |
|