Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Until you post the material Bill requested, all i can offer is to first split the file into something your capacity can handle, run the split pieces individually thru the sort, then merge them back into the final file you need.
In addition to the number of records, what is your lrecl?
Regardless of which sort product you are using, there is always a capacity ceiling - splitting the file may be your route.
Joined: 14 Mar 2007 Posts: 8666 Location: Back in jolly old England
I have usually found that this is caused by the SORTWKnn needing to have a much larger DASD allocation than they already have. Either by increasing the space allocated or by increasing the number of SORTWKnn DD statements.
You may have to code these yourself if you are using dynamic sortwork allocation.