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.

Table 2-1 DSCBs that can be found in the VTOC<br />

Type Name Function How many<br />

0 Free VTOC<br />

DSCB<br />

Describes unused DSCB records<br />

in the VTOC (contains 140 bytes<br />

<strong>of</strong> binary zeros). To delete a<br />

DSCB from the VTOC, a format-0<br />

DSCB is written over it.<br />

1 Identifier Describes the first three extents<br />

<strong>of</strong> a data set or VSAM data space.<br />

2 Index Describes the indexes <strong>of</strong> an ISAM<br />

data set. This data set<br />

organization is old, and is not<br />

supported anymore.<br />

3 Extension Describes extents after the third<br />

extent <strong>of</strong> a non-VSAM data set or<br />

a VSAM data space.<br />

4 VTOC Describes the extent and<br />

contents <strong>of</strong> the VTOC, and<br />

provides volume and device<br />

characteristics. This DSCB<br />

contains a flag indicating whether<br />

the volume is SMS-managed.<br />

5 Free space On a non-indexed VTOC,<br />

describes the space on a volume<br />

that has not been allocated to a<br />

data set (available space). For an<br />

indexed VTOC, a single empty<br />

format-5 DSCB resides in the<br />

VTOC; free space is described in<br />

the index and DS4IVTOC is<br />

normally on.<br />

7 Free space<br />

for certain<br />

device<br />

Only one field in the format-7<br />

DSCB is an intended interface.<br />

This field indicates whether the<br />

DSCB is a format-7 DSCB. You<br />

can reference that field as<br />

DS1FMTID or DS5FMTID. A<br />

character 7 indicates that the<br />

DSCB is a format-7 DSCB, and<br />

your program is not to modify it.<br />

One for every unused 140-byte record<br />

in the VTOC. The DS4DSREC field <strong>of</strong><br />

the format-4 DSCB is a count <strong>of</strong> the<br />

number <strong>of</strong> format-0 DSCBs in the<br />

VTOC. This field is not maintained for an<br />

indexed VTOC.<br />

One for every data set or data space on<br />

the volume, except the VTOC.<br />

One for each ISAM data set (for a<br />

multivolume ISAM data set, a format-2<br />

DSCB exists only on the first volume).<br />

One for each data set on the volume<br />

that has more than three extents. There<br />

can be as many as 10 for a PDSE, HFS,<br />

extended format data set, or a VSAM<br />

data set component cataloged in an<br />

integrated catalog facility catalog.<br />

PDSEs, HFS, and extended format data<br />

sets can have up to 123 extents per<br />

volume. All other data sets are<br />

restricted to 16 extents per volume. A<br />

VSAM component can have 7257<br />

extents in up to 59 volumes (123 each).<br />

One on each volume.<br />

One for every 26 non-contagious<br />

extents <strong>of</strong> available space on the<br />

volume for a non- indexed VTOC; for an<br />

indexed VTOC, there is only one.<br />

This DSCB is not used frequently.<br />

Chapter 2. Data set basics 47

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

Saved successfully!

Ooh no, something went wrong!