The coding of the DISP parameter for these data sets depends in part on the PARM-specified response to an unsuccessful sort. There are four cases:
-
NOIOERR and NORC16 (These are the delivered defaults.)
-
IOERR=ABE and RC16=ABE
-
IOERR=ABE and NORC16
-
NOIOERR and RC16=ABE
When return code 16 is issued by the unsuccessful sort (i.e., when an I/O error occurs and NOIOERR is set or, for other errors, when NORC16 is set), the second subparameter of the DISP parameter should be specified as KEEP or CATLG. When the unsuccessful sort causes a user abend (i.e., when IOERR=ABE for I/O errors, RC16=ABE for other errors), the third subparameter of the DISP parameter should be specified as KEEP or CATLG. Thus, with NOIOERR and RC16=ABE or with IOERR=ABE and NORC16, both the second and the third DISP subparameter should be specified as KEEP or CATLG. Unless the DISP parameter is coded in accordance with these two PARM values, restart will be impossible.
It is recommended that these data sets be deleted upon successful completion of the sort. This can be done by coding the COND parameter for an IEFBR14 step to follow the sort step in the jobstream. The COND parameter makes the IEFBR14 (data set deletion) execution depend upon the successful completion of the previous step (the sort).