09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

DEFINE ALTERNATEINDEXDefine an Alternate Index with RECATALOG: Example 4In this example, an alternate index is redefined into a catalog.//DEFAIXR JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE ALTERNATEINDEX -(NAME(DEFAIXR.AIX01) -RELATE(DEFKSDS.KSDS03) -CYLINDERS(2 1) -VOLUMES(333001) -RECATALOG) -CATALOG(USERCAT4)/*This DEFINE ALTERNATEINDEX command re-catalogs an alternate index entry, adata entry, and an index entry to redefine the alternate index, DEFAIXR.AIX01. TheVSAM volume record (VVR) entry and the corresponding VTOC entry <strong>for</strong> thealternate index must exist. Only the catalog entry is re-cataloged, so no space isallocated. The command’s parameters are:vvvvvvNAME indicates the alternate index’s name, DEFAIXR.AIX01.RELATE identifies the alternate index base cluster, DEFKSDS.KSDS03.CYLINDERS allocates two cylinders <strong>for</strong> the alternate index’s space. The alternateindex is extended in increments of one cylinder.VOLUMES places the alternate index on volume 333001. This example assumesthat a VTOC entry already exists <strong>for</strong> this object.RECATALOG re-catalogs the alternate index and uses the existing VVR entryand VTOC entry.CATALOG defines the alternate index in the user catalog, USERCAT4.144 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

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

Saved successfully!

Ooh no, something went wrong!