Holding using the OUTPUT JCL statement

You can code a sysout data set disposition that is based on the success of the job. The OUTDISP parameter of the OUTPUT JCL statement allows you to specify a normal sysout disposition and an abnormal sysout disposition. Note that the OUTDISP abnormal sysout disposition is not supported in an APPC scheduling environment. The system uses the normal disposition when the job completes successfully. It uses the abnormal disposition when the job does not complete successfully, due to a JCL error, an abend, or job termination resulting from a condition code.

For example, the following statement will cause the system to hold a sysout data set when the job completes normally or abnormally.
   //HELDDS    OUTPUT  OUTDISP=(HOLD,HOLD)  

Coding OUTDISP=(HOLD,HOLD) is equivalent to coding HOLD=YES on the DD statement.

The OUTDISP parameter allows you to specify the following dispositions for a sysout data set: