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

SORTWK dataset usage


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

Active User


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

PostPosted: Fri Oct 12, 2012 3:26 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Fri Oct 12, 2012 3:45 am
Reply with quote

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

Moderator Emeritus


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

PostPosted: Fri Oct 12, 2012 6:44 am
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: 2481
Location: Netherlands, Amstelveen

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

Maybe this 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
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: 205
Location: Toronto, ON, Canada

PostPosted: Sat Oct 13, 2012 3:52 am
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

Superior Member


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

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

This link might be of interest as well: 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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
Search our Forums:


Back to Top