Catalog Basics: ICF Catalog Components

By Blair Svihra

 


Today’s modern day catalog structure consists of three components:

It could be argued that the catalog environment could be expanded to include a discussion including any one of the five major Tape Management Catalogs (TMCs) and/or IBM’s Hierarchical Storage Manager (HSM) offering, but these topics can be discussed in detail in a later white-paper. A catalog allows access to a data set without having to know its physical location. Let’s look at all three components and how they are related.

The BCS is primarily a data set locator. Vital information needed to open and process a data set (AMDSB information, extent information, data set attributes, and so on) is in the VTOC and VVDS on the volume where physical DASD data sets reside. BCS information includes,

There will always be four entries in a BCS after it’s created:

The BCS is a pure key sequenced data set (KSDS). It can be opened and processed as a normal KSDS outside of catalog management. A typical data set name can be up to 44 characters in length. The key length in all ICF catalogs is 45 bytes. The 45th byte is used for extension record processing within catalogs. Forty-four bytes are used for the data set name in the VTOC and VVDS. The cluster name of every ICF catalog is 45 bytes of binary zeros. This forces a catalog’s self-describing record to a fixed location in the BCS – relative byte address (RBA) of 0. This allows system initialization to access a catalog directly by channel program I/O before the catalog address space has been initialized. The name specified in the IDCAMS ‘DEFINE’ is the name of the catalog’s data component, not the cluster name. The index of a BCS is generated automatically and referred to as the CATINDEX. There are a few flavors of the index name that IBM has used since ICF catalogs were first introduced in the early 80’s.

The VVDS is a special entry sequenced data set (ESDS). Its name, SYS1.VVDS.Vvolser, is a reserved name. The volser in the VVDS name must match the volser in the unit control block (UCB) for the device on which it resides. The VVDS contains:

SMS managed nonVSAM data sets on a volume have entries in the VVDS, but their content mainly consists of SMS class information. SMS constructs reside in both the BCS and VVDS (duplication of information). The reason for this is discussed in a later white-paper titled “Catalog Diagnostics.” VSAM volume records (VVR’s) describe VSAM components on a volume. NonVSAM volume records (NVR’s) describe SMS managed nonVSAM entries on volume. NVR records will only be present on the first volume of a multi-volume SMS managed nonVSAM data set. NonVSAM nonSMS managed data sets on a volume do not have any entries in the VVDS, only the VTOC. VVCR, VVCM and VVCN are other control records that can be present in the VVDS. The VVCR is always located at RBA 0 and contains a space map detailing the physical layout of the VVDS. It also contains the names of the first 36 catalogs that have or have had data sets on the volume. VVCN records are created to describe additional catalogs that have or have had entries on the volume. Additional VVCM records can exist to map the physical layout of the VVDS if the size of the VVCR space map is not adequate to map the VVDS.

The VTOC has been around much longer than the VVDS. Volumes may or may not have VTOC indexes – SYS1.VTOCIX.volser to further enhance access to VTOC information by DADSM. Allocate one on your volume with IBM’s ICKDSF and enable the index. There is an overlap of information that resides in the VTOC and VVDS for some components on a volume. For example, extent information for VSAM components that physically reside on a volume is recorded in both repositories. The VTOC acts as a space repository for the volume while the VVDS extent information is used to map the VSAM object when it’s opened. If there is an extent discrepancy between the VVDS and the VTOC, overlays or missing data can occur. Periodic diagnostics on DASD volumes ensure this condition is detected before serious problems occur.


Blair Svihra has been in the z/OS industry for over 30 years, having extensive expertise with ICF catalogs. He was the original author of VSAM Mechanic (Catalog Solution) and has contributed to many other products, including T-REX and Universal Data Manager (UDM).  Blair is currently a Sr. Product Development executive with Dino-Software Corp.

About Dino-Software

Dino-Software Corporation develops enterprise-wide solutions for the management, analysis, protection, and repair of complex z/OS mainframe environments.  Dino-Software has long been acknowledged for its superiority in ICF catalog management and technical support, helping organizations ensure their business-critical assets remain online and recoverable in a disaster.  Learn more about Dino-Software and its z/OS mainframe storage solutions at https://dino-software.com.

Click Here To Read More DINO Tech-Talk Articles