I am facing one issue while performing sort operation
The Job has four input files and I am trying to sort them using sort card.
Output file definition and workarea is as follows:
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
Generally, secondary extents and multiple volumes are not used in sortwks....
Why don't you try FILSZ or SIZE and let the sort allocate the work areas it needs?
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
DFSORT only uses the first volume of multivolume work data sets, so the SYSDA,20 you used for each SORTWKnn is actually equivalent to SYSDA,1. The ICE046A message tells you that 4 SORTWKdd data sets is not enough. You could add more SORTWKdd data sets - how many you need depends on the number of records in your input file and their length. You can specify up to 255 SORTWKdd data sets.
Alternatively, you could remove all of the SORTWKdd data sets and let DFSORT allocate the needed work space dynamically. The FILSZ parameter is generally not needed since DFSORT can usually determine the file size automatically. In the few cases where it is needed (e.g. an E15 exit supplies all of the input records), you can specify the approximate number of records (x) as follows:
Code:
//DFSPARM DD *
OPTION FILSZ=Ex
/*
DFSORT will use your installation's default for the maximum number of work data sets to dynamically allocate. If appropriate, you can increase that maximum (n) as follows: