Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Why SORTWK statements used

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 108

PostPosted: Fri Jan 06, 2006 8:57 pm    Post subject: Why SORTWK statements used
Reply with quote

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
Back to top
View user's profile Send private message
References
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 4684
Location: San Jose, CA

PostPosted: Fri Jan 06, 2006 9:30 pm    Post subject:
Reply with quote

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:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/A.0?DT=20050222160456
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1