In the IBM mainframe storage architecture, Volume Table Of Contents, or VTOC, is a data structure that provides a way of locating the data sets that reside on a particular disk volume. It can reside within the first 64K tracks on the volume, and lists the names of each data set on the volume as well as size, location, and permissions. Additionally, it contains an entry for every area of contiguous free space on the volume. The third record on the first track of the first cylinder of any volume of DASD (i.e. disk pack) is known as the volume label and must contain a pointer to the location of the VTOC. A VTOC is added to a disk when it is initialized using the Device Support Facilities utility program, ICKDSF. VTOC was originally designed for removable disk packs.
To locate a data set, a program will generally interrogate a z/OS catalog to find the volume where the data set resides. Having found the correct volume, the VTOC is searched to find out where on the disk the data set is stored.
The VTOC comprises records known as Data Set Control Blocks, or DSCBs. There are ten types of DSCB.
| DSCB format type | Purpose | Notes |
|---|---|---|
| 0 | Empty entry | |
| 1 | Data set primary | Describes first three extents of a data set |
| 2 | ISAM data set | Describes ISAM data sets |
| 3 | Data set extension | Describes data set extents after the third |
| 4 | VTOC | Describes volume attributes |
| 5 | Free space | 26 extents on non-index volumes |
| 6 | Free space | 5 extents that are converted to Format 5 DSCB |
| 7 | Free space | Extension of Format 4 DSCB |
| 8 | Data set primary | EAV version of Format 1 DSCB |
| 9 | Data set extension | EAV extension of Format 8 DSCB |
The first DSCB in the VTOC is always a format 4 DSCB which describes the VTOC itself and attributes of the disk volume on which this VTOC resides. The second DSCB is always a format 5 DSCB which describes free space within the VTOC. Normally, the rest of the VTOC will contain format 0 DSCBs, which are empty entries, and format 1 or format 3 DSCBs, which describe the "extents" of data sets, giving their start address and end address of up to 16 such "extents" on disk. The initial part of a data set is described by a format 1 DSCB. If necessary, format 3 DSCBs are used to describe further "extents" of the data set. When a data set is deleted, its format 1 DSCB is overwritten to become a format 0 DSCB, and the format 3 DSCB, if one exists, is similarly deleted.
Originally, a VTOC search was a sequential scan of the DSCBs, stopping when the correct format 1 DSCB was found or the end of the VTOC was reached. As disk volumes became larger, VTOC search became a bottleneck and so a VTOC index was added.
Famous quotes containing the words volume, table and/or contents:
“And all the great traditions of the Past
They saw reflected in the coming time.
And thus forever with reverted look
The mystic volume of the world they read,
Spelling it backward, like a Hebrew book,
Till life became a Legend of the Dead.”
—Henry Wadsworth Longfellow (18091882)
“Remember thee?
Ay, thou poor ghost, whiles memory holds a seat
In this distracted globe. Remember thee?
Yea, from the table of my memory
Ill wipe away all trivial fond records,
All saws of books, all forms, all pressures past
That youth and observation copied there,
And thy commandment all alone shall live
Within the book and volume of my brain,”
—William Shakespeare (15641616)
“To be, contents his natural desire;
He asks no Angels wing, no Seraphs fire;
But thinks, admitted to that equal sky,
His faithful dog shall bear him company.”
—Alexander Pope (16881744)