JCL ICEMAN how many sort files are needed? <p>I am working with JCL and there is what is called an <strong><em>ICEMAN</em></strong> which is which is invoked when the IBM SORT utility DFSORT is used. DFSORT can be used to SORT, COPY or MERGE files, amongst other things. In the example below there the output is from a SORT. My question is how many sortwork (//<strong>SORTWK01</strong> DD UNIT=SYSDA,SPACE=(CYL,30)) files are needed. They seem to me to always vary in number when I see them in JCL. Is there a formula for this to figure the size of how many SORTWKnns are needed? </p> <p>JCL Code:</p> <pre><code>//STEP5 EXEC PGM=ICEMAN,COND=(4,LT) //SYSOUT DD SYSOUT=1 //SYSIN DD DSN=CDP.PARMLIB(cardnumberhere),DISP=SHR //SORTIN DD DSN=filename,DISP=SHR //SORTOUT DD DSN=filename,DISP=(OLD,KEEP), // DCB=(LRECL=5000,RECFM=FB), // SPACE=(CYL,30) //SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,30) //SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,30) //SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,30) //SORTWK04 DD UNIT=SYSDA,SPACE=(CYL,30) </code></pre>