IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Why SORTWK statements used


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Fri Jan 06, 2006 8:57 pm
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
Frank Yaeger

DFSORT Developer


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

PostPosted: Fri Jan 06, 2006 9:30 pm
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:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/A.0?DT=20050222160456
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts Embeding DB2 sql statements in scirpt... DB2 7
No new posts filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
No new posts Rexx to create VSAM define statements CLIST & REXX 10
Search our Forums:

Back to Top