VOLUME — Specify a Volume Serial Number

Use the VOLUME parameter to identify the serial number of the volume on which a data set is located.

Rules

Optional or Required: Optional

Section: FROM, TO

DAP: SEQ, PDS

Format


1 VOLUME
1 VOLSER
1 VOL
1 VSN
2  (
2 + ,  vol-ser 
2  )
vol-ser
is the serial number of the volume on which the data set is located. If you do not specify this parameter, the volume serial number in the data set label is assumed for existing data sets.

Usage Note

If the “to” data set is a new, multivolume data set, the primary SPACE parameter must specify an amount of space that is equal to or less than the space remaining on the first volume. Otherwise, the transaction will fail.

Example

Copy the data set ONEDATA to the new data set TWODATA. Specify that the serial number of the volume on which TWODATA is to be allocated is 111111. Use the TSO prefix (BDT).
BDT Q  FROM DATASET(ONEDATA) LOCATION(KGN01) DAP(PDS)
       TO DATASET(TWODATA) LOCATION(KGN02)
       NEW LRECL(255) BLKSIZE(259) RECFM(V) DIR(12)
       SPACE(1,2) CYL DISP(KEEP,DELETE)
       BUFL(4096) DSORG(PO)
       VOLUME(111111) UNIT(3380)