SORTWKxx DD statements are not used for merge or copy applications. They are not required for sorts executed using the DYNALLOC option. Provided neither DYNALLOC nor FIELDS=COPY is in effect, it will be necessary to include SORTWK data sets whenever any of these conditions holds:
-
INCORE is set to OFF.
-
An E14 or E16 is included.
-
Checkpoint-Restart is specified.
-
The criteria for an incore sort are not met. (See the discussion of incore sorts in Performance Considerations.)
-
SUM, DUPKEYS, OUTREC or OUTFIL is used.
-
SORTOUT is a VSAM data set.
Note: Sort applications that use SUM, DUPKEYS, OUTREC, OUTFIL or VSAM SORTOUT and do not provide JCL
SORTWORKs may have DYNALLOC automatically enabled. This will allow the completion of a
sort that would have terminated for lack of required SORTWORK space.