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.

► Physical errors<br />

The records on the DASD volume are invalid; for example, they are <strong>of</strong> a wrong length.<br />

Reasons can be an overlay <strong>of</strong> physical DASD space or wrong extent information for the<br />

data set in the VTOC or VVDS.<br />

When errors in the VSAM structure occur, they are in most cases logical errors for the BCS.<br />

Because the VVDS is an entry-sequenced data set (ESDS), it has no index component.<br />

Logical errors for an ESDS are unlikely.<br />

You can use the IDCAMS EXAMINE command to analyze the structure <strong>of</strong> the BCS. As<br />

explained previously, the BCS is a VSAM key-sequenced data set (KSDS). Before running the<br />

EXAMINE, run an IDCAMS VERIFY to make sure that the VSAM information is current, and<br />

ALTER LOCK the catalog to prevent update from others while you are inspecting it.<br />

With the parameter INDEXTEST, you analyze the integrity <strong>of</strong> the index. With parameter<br />

DATATEST, you analyze the data component. If only the index test shows errors, you might<br />

have the chance to recover the BCS by just running an EXPORT/IMPORT to rebuild the index. If<br />

there is an error in the data component, you probably have to recover the BCS as described<br />

in 6.14, “Recovery procedures” on page 355.<br />

Catalog errors<br />

By catalog errors we mean errors in the catalog information <strong>of</strong> a BCS or VVDS, or<br />

unsynchronized information between the BCS and VVDS. The VSAM structure <strong>of</strong> the BCS is<br />

still valid, that is, an EXAMINE returns no errors.<br />

Catalog errors can make a data set inaccessible. Sometimes it is sufficient to delete the<br />

affected entries, sometimes the catalog needs to be recovered (see 6.14, “Recovery<br />

procedures” on page 355).<br />

You can use the IDCAMS DIAGN<strong>OS</strong>E command to validate the contents <strong>of</strong> a BCS or VVDS. You<br />

can use this command to check a single BCS or VVDS and to compare the information<br />

between a BCS and multiple VVDSs.<br />

For various DIAGN<strong>OS</strong>E examples, see z/<strong>OS</strong> DFSMS Access Method Services for Catalogs,<br />

SC26-7394.<br />

358 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3

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

Saved successfully!

Ooh no, something went wrong!