MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DFSort error: ICE046A 0 SORT CAPACITY EXCEEDED

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Sterling Price
Beginner


Joined: 30 Aug 2004
Posts: 19
Topics: 8

PostPosted: Tue Oct 12, 2004 11:16 am    Post subject: DFSort error: ICE046A 0 SORT CAPACITY EXCEEDED Reply with quote

I'm posting this on behalf of a colleague who is having problems with a splice using an extremely large dataset. She has already tried adding more sortwork files. What else might she try to overcome this problem?

Here is her question:

Quote:
I am trying to write an ICETOOL Splice step that takes in a file with approximately 85 million records and matches it based on the first four bytes with another file.

I keep getting this message:
ICE046A 0 SORT CAPACITY EXCEEDED - RECORD COUNT 85208051

I have added multiple sort work datasets to the job.

Does anyone have an example of how I can get this splice operation to run?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Oct 12, 2004 11:28 am    Post subject: Reply with quote

Sterling price,

Try Removing all your Sortwork datasets and code this parm in control cards

Code:

  OPTION FILSZ=E99999999,DYNALLOC=(,32)



Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Oct 12, 2004 11:44 am    Post subject: Reply with quote

If you use JCL SORTWKdd DD statements, then they must have enough space available for the SORT (SPLICE does a SORT). As a guideline,you need about 1.3 times the SORTIN space for the SORTWKs. You can increase the SPACE for the specified JCL SORTWKs or add more SORTWKs to get more space, but if you don't specify enough space or the space is not available, you will get the ICE046A. Note that you can specify up to 255 JCL SORTWKs.

An alternative is to remove the JCL SORTWKs and let DFSORT use dynamic allocation. Again, you can use up to 255 dynamically allocated work data sets. You can increase the number of dynamically allocated work data sets above your site default by specifying:

Code:

//DFSPARM DD *
  OPTION DYNALLOC=(,n)
/*


But you still need to have enough space available to do the sort.

If the volumes you use for work space are pretty full, you may need to clean them off or use other volumes that have more available space.

FILSZ=En is NOT normally needed for SPLICE. The only time it is needed is when you're using tape input, and don't have DFSMSrmm or a tape management system that uses DFSORT's ICETPEX interface.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sterling Price
Beginner


Joined: 30 Aug 2004
Posts: 19
Topics: 8

PostPosted: Tue Oct 12, 2004 12:53 pm    Post subject: Reply with quote

Thanks Frank and Kolusu. I will pass these suggestions on to my colleague and report back with the results after she tries them.
Back to top
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Wed Sep 19, 2007 2:40 am    Post subject: Reply with quote

Hi,
A cobol program using an internal sort is giving me the same error. Any idea how can I pass DYNALLOC in this case.

Thanks
Sreejith
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Wed Sep 19, 2007 5:36 am    Post subject: Reply with quote

From the COBOL Programming Guide, maybe this will help:
Quote:
Allocating space for sort files
If you use NOFASTSRT or an input procedure, DFSORT does not know the size of the file that you are sorting. This can lead to an out-of-space condition when you are sorting large files or to overallocation of resources when you are sorting small files. If this occurs, you can use the SORT-FILE-SIZE special register to help DFSORT determine the amount of resource (for example, workspace or hiperspace) needed for the sort. Set SORT-FILE-SIZE to a reasonable estimate of the number of input records. This value is passed to DFSORT as its FILSZ=En value.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Sep 19, 2007 9:24 am    Post subject: Reply with quote

You can also add //$ORTPARM DD * to your step and override options for an invoked sort.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Wed Sep 19, 2007 9:28 am    Post subject: Reply with quote

Bill Dennis wrote:
You can also add //$ORTPARM DD * to your step and override options for an invoked sort.
I kind of thought so too, but I failed to find the spot in the manual where it specified that it was possible.....Frank has made it clear that if you can't prove it, don't post it... Wink
Back to top
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Wed Sep 19, 2007 10:17 am    Post subject: Reply with quote

Thanks for all the replies. I will give it a try
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Sep 19, 2007 10:18 am    Post subject: Reply with quote

DFSPARM is applicable to any invocation of DFSORT including COBOL programs. So you can specify DYNALLOC in DFSPARM (as mentioned in my previous post) for a COBOL program.

Code:

//DFSPARM DD *
  OPTION DYNALLOC=(,n)
/*


DFSORT supports $ORTPARM as well as DFSPARM so if you like you can use this instead:

Code:

//$ORTPARM DD *
  OPTION DYNALLOC=(,n)
/*

_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Sep 19, 2007 10:22 am    Post subject: Reply with quote

CICS Guy,

The use of $ORTPARM is documented in Note 3 of the "DFSPARM DD Statement" discussion:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/2.4.4.9?SHELF=&DT=20060615185603&CASE=
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Wed Sep 19, 2007 1:22 pm    Post subject: Reply with quote

Thanks Frank, I seemed to have gotten sidetracked into "Providing Program Control Statements" in the Chapter 5 topic of "Invoking DFSORT With The Extended Parameter List"..... Embarassed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group