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
 

 

SORTWK dataset usage

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Fri Oct 12, 2012 3:26 am    Post subject: SORTWK dataset usage
Reply with quote

I was given some JCL to modify. It had an step to run ICETOOL SELECT statement. I think this does a sort of the data.

The jcl had 12 SORTWK## datasets. This seems excessive to me. The manual suggest that 3 to 4 is sufficient.

My question - is there a way to determine after the run of the step as to how many of the SORTWK datasets it actually used? If it only uses 2 then I can safely remove 8-10 of the datasets and reduce the clutter in the jcl. Or should I just leave well enough alone and let someone else foot the bill for all that dasd?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Oct 12, 2012 3:45 am    Post subject: Reply to: SORTWK dataset usage
Reply with quote

why not let sort allocate dynamically what it needs ?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Oct 12, 2012 6:44 am    Post subject:
Reply with quote

Hello,

I've not done this in a while, but when the step deallocation info is gnerated (if this happens on your system), the excp counts for the datasets are shown.

Maybe this will help?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Oct 12, 2012 1:35 pm    Post subject:
Reply with quote

Maybe this http://publib.boulder.ibm.com/infocenter/zos/v1r11/index.jsp?topic=/com.ibm.zos.r11.icea100/icesel.htm will put your mind at ease.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Oct 12, 2012 10:13 pm    Post subject:
Reply with quote

jerryte,

I would suggest going with DYNALLOC and let DFSORT calculate the required Storage required for Sorting.

ex:
Code:

OPTION DYNALLOC=(,6)   
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Sat Oct 13, 2012 3:52 am    Post subject:
Reply with quote

Thanks for the tips. I will look into the dynamic allocation.

This is an issue where no harm is done by allocating more then what is needed. However allocating way too much means that someone has to pay for it.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Oct 17, 2012 7:55 pm    Post subject:
Reply with quote

This link might be of interest as well: http://ibmmainframes.com/about57783.html
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


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