Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Extracting Information from DD Statem... Charles Wolters All Other Mainframe Topics 7 Wed Apr 13, 2016 10:21 pm
No new posts Parsing JCL SET var=value statements prino CLIST & REXX 0 Sat Dec 26, 2015 4:41 am
No new posts DFSORT control statements in any order ? ronald masters DFSORT/ICETOOL 2 Tue Dec 15, 2015 11:22 pm
No new posts Any example of XML GENERATE nested st... marianambot COBOL Programming 6 Tue Sep 22, 2015 7:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us