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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DEFINE CLUSTER//SYSIN DD *DEFINE CLUSTER -(NAME(EXAMPLE.ESDS2) -RECORDSIZE(2500 3000) -SPANNED -VOLUMES(VSER03) -CYLINDERS(2 1) -NONINDEXED -REUSE -CATALOG(RSTUCAT2)/*The DEFINE CLUSTER command builds a cluster entry and a data entry to definethe entry-sequenced cluster, EXAMPLE.ESDS2. The DEFINE CLUSTER commandassigns two tracks <strong>for</strong> the cluster’s use. The command’s parameters are:vvvvvvvvNAME specifies that the cluster’s name is EXAMPLE.ESDS2.RECORDSIZE specifies that the records are variable length, with an average sizeof 2500 bytes and a maximum size of 3000 bytes.SPANNED specifies that data records can cross control interval boundaries.VOLUMES specifies that the cluster is to reside on volume VSER03.CYLINDERS specifies that two cylinders are to be allocated <strong>for</strong> the cluster’sspace. When the cluster is extended, it is to be extended in increments of 1cylinder.NONINDEXED specifies that the cluster’s data organization is to beentry-sequenced. This parameter overrides the INDEXED parameter.REUSE specifies that the cluster is to be reusable. Each time the cluster isopened, its high-used RBA can be reset to zero and it is effectively an emptycluster.CATALOG specifies that the cluster is to be defined in a user catalog,RSTUCAT2.Define a Key-Sequenced Cluster in a Catalog: Example 7In this example, a key-sequenced cluster is defined. In other examples, an alternateindex is defined over the cluster, and a path is defined that relates the cluster tothe alternate index. The cluster, its alternate index, and the path entry are alldefined in the same catalog, USERCAT.//DEFCLU6 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE CLUSTER -(NAME(EXAMPLE.KSDS2)) -DATA -(RECORDS(500 100) -EXCEPTIONEXIT(DATEXIT) -ERASE -FREESPACE(20 10) -KEYS(6 4) -RECORDSIZE(80 100) -VOLUMES(VSER01) ) -INDEX -(RECORDS(300 300) -VOLUMES(VSER01) ) -CATALOG(USERCAT)/*Chapter 14. DEFINE CLUSTER 171

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

Saved successfully!

Ooh no, something went wrong!