Volume
One unit of disk storage with a six-character name, where datasets are placed.
Also written VOLSER, volume serial, volser
Why it matters. The catalog says which volume holds each dataset. When you see a volume name in a message, that is where the file is.
Syntax
//ddname DD DSN=name,DISP=OLD,UNIT=SYSDA,VOL=SER=volser
- VOLSER
- The volume serial: up to 6 characters.
- VOL=SER=
- Names the volume in JCL.
- UNIT=
- The kind of device, such as SYSDA for disk.
- Multi-volume
- A big dataset can use several volumes.
- Storage group
- On a storage-managed system, the system picks the volume.
Try it LISTDS
- 1
Find which volume holds the customer file, ZBANK.DATA.CUSTOMER.
LISTDS 'ZBANK.DATA.CUSTOMER' - 2
Now find the volume for the account file, ZBANK.DATA.ACCOUNTS.
LISTDS 'ZBANK.DATA.ACCOUNTS'
Remember
- A volume is one unit of disk storage.
- Its name is the volume serial, VOLSER: six characters, such as RES001.
- Many datasets live on one volume.
The usual mistake
Treating the volume name as part of the dataset name
The dataset name is ZBANK.DATA.CUSTOMER. RES001 is only where it is kept. The catalog remembers the link.
Ask for the dataset by name. The catalog finds the volume.
On real z/OS
MF/OS has one disk volume, RES001, and ignores UNIT and VOL in JCL. On a real system most datasets are storage-managed, and you rarely name a volume.
Where can I practise Volume?
Right here, at ZedBank. You take a junior job at a simulated bank and use Volume in real work, with Zed beside you. There's nothing to install.
Start at ZedBankRelated
- DASDDirect access storage device, the mainframe term for disk storage.
- CatalogThe system's index of where datasets live, so you can refer to a dataset by name without knowing which disk it is on.
- DatasetWhat a mainframe calls a file: a named collection of records with a defined structure, rather than a loose stream of bytes.
- Space allocationReserving disk space for a dataset up front, in tracks, cylinders or blocks, with room to grow.