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 CLUSTERvthe data class and need not be specified. If MAXVOLUMES or the spaceparameters (MEGABYTES and KILOBYTES) were not specified, the values in thedata class would be used.LOG(ALL) specifies that changes to the sphere accessed in RLS and <strong>DFSMS</strong>tvsmode can be backed out and <strong>for</strong>ward recovered using external logs.v LOGSTREAMID gives the name of the <strong>for</strong>ward recovery log stream.The DATA and INDEX parameters are:v MEGABYTES, used <strong>for</strong> DATA, allocates a primary space of 10 megabytes to thedata component. A secondary space of 2 megabytes is specified <strong>for</strong> extendingthe data component.vKILOBYTES, used <strong>for</strong> INDEX, allocates a primary space of 25 kilobytes to theindex component. A secondary space of 5 kilobytes is specified <strong>for</strong> extending theindex component.Define a Key-Sequenced Cluster Specifying Data and IndexParameters: Example 3In this example, a key-sequenced cluster is defined. The DATA and INDEXparameters are specified and the cluster’s data and index components are explicitlynamed. This example assumes that an alias name VWX is defined <strong>for</strong> the catalogRSTUCAT1. This naming convention causes VWX.MYDATA to be cataloged inRSTUCAT1.//DEFCLU1 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE CLUSTER -(NAME(VWX.MYDATA) -VOLUMES(VSER02) -RECORDS(1000 500)) -DATA -(NAME(VWX.KSDATA) -KEYS(15 0) -RECORDSIZE(250 250) -FREESPACE(20 10) -BUFFERSPACE(25000) ) -INDEX -(NAME(VWX.KSINDEX) -CATALOG (RSTUCAT1)/*The DEFINE CLUSTER command builds a cluster entry, a data entry, and an indexentry to define the key-sequenced cluster VWX.MYDATA. The parameters <strong>for</strong> thecluster as a whole are:vvvNAME indicates that the cluster’s name is VWX.MYDATA.VOLUMES is used when the cluster is to reside on volume VSER02.RECORDS specifies that the cluster’s space allocation is 1000 data records. Thecluster is extended in increments of 500 records. After the space is allocated,VSAM calculates the amount required <strong>for</strong> the index and subtracts it from thetotal.In addition to the parameters specified <strong>for</strong> the cluster as a whole, DATA andINDEX parameters specify values and attributes that apply only to the cluster’sdata or index component. The parameters specified <strong>for</strong> the data component ofVWX.MYDATA are:vNAME indicates that the data component’s name is VWX.KSDATA.168 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!