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

sorting a huge tape file into a sequential file


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

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Mon Dec 01, 2008 4:20 am
Reply with quote

Hi,

I am tring to sort a tape file with record count 30 million records. The sysin has Sort fields and Sum fields.

I have been providing workspace through dynamic allocation
OPTION DYNALLOC=(SYSTF,30),FILSZ=E30000000


But my Job failed with message,
SORT CAPACITY EXCEEDED - RECORD COUNT 279890649


I have tried increasing the dynalloc from 30 to 50 still it failed with same message.

Can someone suggest on this.
Back to top
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Mon Dec 01, 2008 4:23 am
Reply with quote

The LRECL of the output file is 60
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Dec 01, 2008 5:03 am
Reply with quote

Hello,

You might want to run a job to count the records on the input. You mention 30 million records, but the sort has seen 279 million+ when the capacity was exceeded.

If you post the complete jcl and control statements it may help us help you.

If all else fails, you can split the file into several smaller files, sort the smaller files and then merge them back into a large sorted file.

Is the input record the same length as the output?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Dec 01, 2008 5:14 am
Reply with quote

You're estimating 30 million records but you've run 279 million through SORT when it runs out of space ... maybe you should increase your estimate first?
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: Mon Dec 01, 2008 6:11 am
Reply with quote

Smaru,

You've said your tape has 30 million records, which is obviously wrong since the ICE046A shows that DFSORT processed about 270 million records before it ran out of work space. How many records does your input file really have?

I can't tell if DFSORT is able to determine the input filesize automatically from your tape management system or not. If it can then it will ignore your FILESZ estimate whereas if it can't it will use your way too small FILSZ estimate.

Try increasing the FILSZ estimate to be more accurate. If that doesn't work, add the following to your job to tell DFSORT to show the diagnostic messages:

//SORTDIAG DD DUMMY

Then rerun the job and send me all of the JES and DFSORT messages offline (yaeger@us.ibm.com) and I'll take a look.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top