Previous topic |
Next topic |
Contact z/OS |
Examples of the VOLUME parameter
z/OS MVS JCL Reference
The DD statement requests an existing data set, which resides on the direct access volume, serial number 548863. Since PRIVATE is coded, the system will not assign to the volume another data set for which a nonspecific volume request is made and will demount the volume at the end of the job.
The DD statement requests an existing data set, which resides on two volumes, serial numbers 96341 and 96342. The VOLUME volume count subparameter requests four volumes, if required. Thus, if more space is required, the system can assign a third and fourth volume.
The DD statement defines a data set that is created and deleted in the job step. By omission of the VOLUME parameter, the statement makes a nonspecific volume request, thereby asking the system to assign a suitable volume to the data set.
This new data set is assigned to volume serial number 335006, which is a permanently mounted volume on a particular 3350 Direct Access Storage. You can obtain the same space on the same volume in another way: instead of specifying the volume serial number and UNIT=3350, you can specify the device number of the particular 3350 device in the UNIT parameter.
DD statement OUTDD creates a multivolume data set and catalogs it. If the data set does not require three volumes, it will reside on fewer volumes. DD statement NEXT then deletes the data set.
If the data set resides on fewer volumes than the number of volumes on which it is cataloged, the following messages appear in the job log when the system deletes the data set:
If the data set resides on all specified volumes, the following messages appear in the job log when the system deletes the data set:
For new system-managed DASD data sets or data sets on a system-managed tape volume, the system uses the attributes in the storage class named SCLAS02 for the storage service level of the data set. Also, if the storage administrator has specified GUARANTEED_SPACE=YES in the storage class for DASD VOLUME=SER can be coded and the data set will reside on the specified volumes. (However, if space is not available on the volumes, the job step fails. Allocation also fails if the requested volumes aren't in any of the possible storage groups for the data set. For tape requests, the system always gets the tape request specified with a specific volume serial.) Installation-written automatic class selection (ACS) routines select the data class and management class.
DD1 in STEP1 identifies the original SMS-managed data set OLD.SMS.DATASET. DD2 in STEP1 and DD3 in STEP2 each create an SMS-managed data set using the attributes in the storage class associated with the original data set OLD.SMS.DATASET in DD1.
Copyright IBM Corporation 1990, 2014