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 ALTERNATEINDEXWhen UPGRADE is specified, the alternate index’s name is catalogedwith the names of other alternate indexes <strong>for</strong> the base cluster. Thegroup of alternate index names identifies the upgrade set that includesall the base cluster’s alternate indexes that are opened when the basecluster is opened <strong>for</strong> write operations.The UPGRADE attribute is not effective <strong>for</strong> the alternate index untilthe alternate index is built (see Chapter 8, “BLDINDEX,” on page 91).If the alternate index is defined when the base cluster is open, theUPGRADE attribute takes effect the next time the base cluster isopened.Abbreviation: UPGNOUPGRADESpecifies that the alternate index does not upgrade when its basecluster is modified.Abbreviation: NUPGWRITECHECK|NOWRITECHECKDetermines whether an alternate index or component is checked by amachine action called write-check when a record is written into it.WRITECHECKIndicates that a record is written and then read, without data transfer,to test <strong>for</strong> the data check condition.Exception:When you use VSAM RLS or <strong>DFSMS</strong>tvs access, theWRITECHECK parameter is ignored.Abbreviation: WCKNOWRITECHECKDoes not write-check the alternate index or component. checked by awrite check.Abbreviation: NWCKData and Index Components of an Alternate IndexAttributes can be specified separately <strong>for</strong> the alternate index’s data and indexcomponents. There is a list of the DATA and INDEX parameters at the beginningof this section. These are described in detail as parameters of the alternate index asa whole. Restrictions are noted with each description.DEFINE ALTERNATEINDEX ExamplesDefine an Alternate Index Using SMS Data Class Specification:Example 1In this example, an SMS-managed alternate index is defined. Because a data classis specified and no overriding attributes are explicitly specified, this define will beunsuccessful if SMS is inactive.//DEFAIX JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE ALTERNATEINDEX -(NAME(EXMP1.AIX) -Chapter 13. DEFINE ALTERNATEINDEX 141

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

Saved successfully!

Ooh no, something went wrong!