Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Examples of the DISP parameter z/OS MVS JCL Reference SA23-1385-00 |
|
Example 1
DD statement DD2 defines an existing data set and implies by the omitted second subparameter that the data set is to be kept if the step terminates normally. The statement requests that the system delete the data set if the step terminates abnormally. Example 2
DD statement DD1 defines a new data set and requests that the data set be passed. If STEPA abnormally terminates, the data set is deleted because it is a new data set, the second subparameter is PASS, and an abnormal termination disposition is not coded. DD statement DD3 in STEPB receives this passed data set and requests that the data set be passed. If STEPB abnormally terminates, the data set is deleted because of the third subparameter of DELETE. DD statement DD4 in STEPC receives the passed data set and requests that the data set be cataloged at the end of the step. If STEPC abnormally terminates, the data set is deleted because of the abnormal termination disposition of DELETE. DD statement DD2 defines an old data set named XTRA. When STEPB terminates, normally or abnormally, this data set is kept. Example 3
DD statement SMSDD5 defines a new SMS-managed data set and requests that the data set be kept (which implies that it be cataloged). Example 4
DD statement SMSDD7 defines an existing SMS-managed data set (the data set had been assigned a storage class when it was created) and requests that the data set be uncataloged. However, the data set is kept because UNCATLG is ignored for SMS-managed data sets. |
Copyright IBM Corporation 1990, 2014
|