11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating the VTOC and VTOC index<br />

To initialize a volume (prepare for I/O activity), use the Device Support Facilities (ICKDSF)<br />

utility to initially build the VTOC. You can create a VTOC index at that time by using the<br />

ICKDSF INIT command and specifying the INDEX keyword.<br />

You can use ICKDSF to convert a non-indexed VTOC to an indexed VTOC by using the<br />

BUILDIX command and specifying the IXVTOC keyword. The reverse operation can be<br />

performed by using the BUILDIX command and specifying the <strong>OS</strong>VTOC keyword. For details,<br />

see Device Support Facilities User’s Guide and Reference Release 17, GC35-0033, and<br />

z/<strong>OS</strong> DFSMSdfp Advanced Services, SC26-7400, for more information about that topic.<br />

VTOC index format-1 DSCB<br />

A format-1 DSCB in the VTOC contains the name and extent information <strong>of</strong> the VTOC index.<br />

The name <strong>of</strong> the index must be 'SYS1.VTOCIX.xxxxxxxx', where xxxxxxxx conforms to<br />

standard data set naming conventions and is usually the serial number <strong>of</strong> the volume<br />

containing the VTOC and its index. The name must be unique within the system to avoid ENQ<br />

contention.<br />

VTOC index record (VIR)<br />

Device Support Facilities (ICKDSF) initializes a VTOC index into 2048-byte physical blocks<br />

named VTOC index records (VIRs). VIRs are used in several ways. A VTOC index contains<br />

the following kinds <strong>of</strong> VIRs:<br />

► VTOC index entry record (VIER) identifies the location <strong>of</strong> format-1 DSCBs and the<br />

format-4 DSCB.<br />

► VTOC pack space map (VPSM) identifies the free and allocated space on a volume.<br />

► VTOC index map (VIXM) identifies the VIRs that have been allocated in the VTOC index.<br />

► VTOC map <strong>of</strong> DSCBs (VMDS) identifies the DSCBs that have been allocated in the<br />

VTOC.<br />

Chapter 2. Data set basics 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!