Joined: 27 Nov 2008 Posts: 31 Topics: 9 Location: India
Posted: Wed Jan 18, 2012 10:14 am Post subject: Strange SORT problem
Hi,
I have a strange SORT problem with the production jcl. A single dataset is being used by 3 different sort steps.
The sort criteria is similar in all the 3 steps. From the last the 3 or 4 days, the third step is failing with the
reason sort capacity exceeded and first 2 steps are fine. See below for the example
After fail, we increase the space for temporary sort dataset in the 3rd step and it works fine. Is this the problem with SORT space
or some storage issue?
Where and how are output-1, output-2 and output-3 defined? Are they all defined with the same amount of space? Are they all being defined on the same disk pack, and then the first two take up all the available space before the third file is created? _________________ "Programming today is a race between software engineers striving to build bigger and better idiot- proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Jan 18, 2012 12:39 pm Post subject:
lenovo,
SORT CAPACITY EXCEEDED means you don't have enough work data set space. I'm guessing the reason for that is you allocated work data sets (//SORTWKdd DDs) in each step and that space is not being released between steps (regardless of the RLSE parameter). I suspect if you just removed the //SORTWKdd DD statements, DFSORT would work fine using dynamically allocated work data sets which it releases between steps.
We always recommend the use of dynamically allocated work data sets rather than JCL SORTWKdd DD statements. For more information, see:
And, of course, this could easily be done in one DFSORT step with OUTFIL statements - that would certainly require less work space. Are you not allowed to suggest a better way to do something? If you can make a change to the SPACE parameters and/or remove the //SORTWKdd DD statements, why can't you just change the job to a single step? _________________ 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
Some how I believe that what you say here on this board, lenovo, about this probelm is your percption about the problem and not the actual thing becasue I've seen SORT CAPACITY EXCEEDED at times and that has a solution. Specially when you use DfSort and Kolusu and Frank are on this thread; said that - suggest you share the SYSOUT of failed job with us. _________________ Regards,
Anuj
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