title: How can I solve "WER046A SORT CAPACITY EXCEEDED" in SYNCSORT JCL
body: <p>I am trying to sort a data set and writing into a new data set, Every time i am executing the job, its abending (ABEND=U0016).</p>
  
  <p>message form SYSOUT.</p>
  
  <pre><code>    WER276B  SYSDIAG= 24646562, 29667262, 29667262, 27500165            
      WER164B  307,288K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
      WER164B     0 BYTES RESERVE REQUESTED, 307,272K BYTES USED          
      WER036B G=5174,B=1,BIAS=99 
      WER162B 75 PREALLOCATED SORTWORK TRACKS, 3,750,000 DYNAMICALLY 
               ALLOCATED, 
      WER162B 26,721,480 ACQUIRED IN 2,230 SECONDARY EXTENTS, 0 RELEASED, 
               TOTAL 30,471,555 TRACKS USED
      WER046A  SORT CAPACITY EXCEEDED              
      WER493I  ZIIP PROCESSOR USED                 
      WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000
      WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
      WER066A  APROX RCD CNT        30430982 
  </code></pre>
  
  <p>Here is my code: </p>
  
  <pre><code>    //STEP50  EXEC SORTD                                             
      //SORTIN   DD DSN=FILEXYZ(0),                          
      //            DISP=SHR,DCB=BUFNO=192                             
      //SORTOUT  DD DSN=FILE2XXY,                            
      //            DISP=(NEW,CATLG,DELETE),RETPD=365,VOL=(,,,99),     
      //            DCB=(RECFM=FB,LRECL=30050,BLKSIZE=0,BUFNO=192),    
      //            UNIT=(TAPE,2)                                      
      //SYSOUT   DD SYSOUT=*                                           
      //SYSPRINT DD SYSOUT=*                                           
      //SYSIN    DD *                                                  
             SORT FIELDS=(19,5,PD,A,8,6,PD,A,50,2,ZD,A)                  
             OUTREC IFTHEN=(WHEN=(70,18,CH,EQ,C' encoding="IBM037"'),    
                           OVERLAY=(70:C'  encoding="UTF-8"'))             
             OPTION DYNALLOC=(SYSDA,255)                                 
      /*  
  </code></pre>
  
  <p>Here is code from SORTD from the jcl: </p>
  
  <pre><code>       4 //STEP40  EXEC SORTD                                                  
         5 XXSORTD   PROC CYLS=1,SYSFICH='*',                                    
           XX     DMPCLAS='1,DEST=ABNORMAL'                                      
           XX*                                                                   
           XX*    REMOVED SEP PARAMETER 89/07/20                                 
           XX*                                                                   
         6 XXSORTD    EXEC PGM=SORT                                              
         7 //SYSOUT   DD SYSOUT=*                                                
           X/SYSOUT   DD SYSOUT=&amp;SYSFICH                                         
           IEFC653I SUBSTITUTION JCL - SYSOUT=*                                  
         8 XXSORTWK01 DD DSN=&amp;WORK1,SPACE=(CYL,(&amp;CYLS)),UNIT=SORTWORK            
           IEFC653I SUBSTITUTION JCL - DSN=&amp;WORK1,SPACE=(CYL, 
           (1)),UNIT=SORTWORK  
         9 XXSORTWK02 DD DSN=&amp;WORK2,SPACE=(CYL,(&amp;CYLS)),UNIT=SORTWORK            
           IEFC653I SUBSTITUTION JCL - DSN=&amp;WORK2,SPACE=(CYL, 
           (1)),UNIT=SORTWORK  
        10 XXSORTWK03 DD DSN=&amp;WORK3,SPACE=(CYL,(&amp;CYLS)),UNIT=SORTWORK            
           IEFC653I SUBSTITUTION JCL - DSN=&amp;WORK3,SPACE=(CYL, 
           (1)),UNIT=SORTWORK  
        11 XXSORTWK04 DD DSN=&amp;WORK4,SPACE=(CYL,(&amp;CYLS)),UNIT=SORTWORK            
           IEFC653I SUBSTITUTION JCL - DSN=&amp;WORK4,SPACE=(CYL, 
           (1)),UNIT=SORTWORK  
        12 XXSORTWK05 DD DSN=&amp;WORK5,SPACE=(CYL,(&amp;CYLS)),UNIT=SORTWORK            
           IEFC653I SUBSTITUTION JCL - DSN=&amp;WORK5,SPACE=(CYL, 
           (1)),UNIT=SORTWORK  
        13 XXSYSABEND DD SYSOUT=&amp;DMPCLAS                                         
           IEFC653I SUBSTITUTION JCL - SYSOUT=1,DEST=ABNORMAL                    
        14 XXSYSUDUMP DD SYSOUT=&amp;DMPCLAS                                         
           IEFC653I SUBSTITUTION JCL - SYSOUT=1,DEST=ABNORMAL                    
        15 //SORTIN   DD DSN=FILEXYZ(0),                               
           //            DISP=SHR,DCB=BUFNO=192                                  
        16 //SORTOUT  DD DSN=FILE2XXY,                                 
           //            DISP=(NEW,PASS,DELETE),RETPD=365,VOL=(,,,99),           
           //            DCB=(RECFM=FB,LRECL=30050,BLKSIZE=0,BUFNO=192),         
           //            UNIT=TAPE                                               
        17 //SYSPRINT DD SYSOUT=*                                                
        18 //SYSIN    DD *     
  </code></pre>
  
  <p>Please suggest me some hints to over come this issue.
  Thank you.                                                             </p>