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 CLUSTER//DEFCLU8 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE CLUSTER -(NAME(EXAMPLE.RRDS1) -RECORDSIZE(100 100) -VOLUMES(VSER01) -TRACKS(10 5) -NUMBERED -TO(2015012) ) -CATALOG(USERCAT)/*The DEFINE CLUSTER command builds a cluster entry and a data entry to definethe relative record cluster, EXAMPLE.RRDS1, in the user catalog, USERCAT. TheDEFINE CLUSTER command allocates ten tracks <strong>for</strong> the cluster’s use. Theexpiration date is set to January 12, 2015. The parameters are:vvvvvvvNAME specifies that the cluster’s name is EXAMPLE.RRDS1.RECORDSIZE specifies that the records are fixed-length, 100-byte records.Average and maximum record length must be equal <strong>for</strong> a fixed-length relativerecord data set, but not equal <strong>for</strong> a variable-length RRDS.VOLUMES specifies that the cluster is to reside on volume VSER01.TRACKS specifies that ten tracks are allocated <strong>for</strong> the cluster. When the clusteris extended, it is to be extended in increments of five tracks.NUMBERED specifies that the cluster’s data organization is to be relative record.TO specifies that the retention period is set to expire January 12, 2015. Note thatthe year (2015) is specified as a four-digit number and concatenated with theday (012). The retention period could also have been set by using the FORparameter, followed by the number of days the cluster is to be retained.CATALOG specifies that the cluster is to be defined in a user catalog, USERCAT.Define a Linear Data Set Cluster in a Catalog: Example 11In this example, a linear data set cluster is defined in a catalog.//DEFLDS JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE CLUSTER -(NAME(EXAMPLE.LDS01) -VOLUMES(VSER03) -TRACKS(20 10) -LINEAR -CATALOG(USERCAT)/*The DEFINE CLUSTER command builds a cluster entry and a data entry to definethe linear data set cluster EXAMPLE.LDS01. The parameters are:vvvvvNAME specifies that the cluster’s name is EXAMPLE.LDS01.VOLUMES specifies that the cluster is to reside on volume VSER03.TRACKS specifies that 20 tracks are allocated <strong>for</strong> the cluster’s space. When thecluster is extended, it is to be extended in increments of 10 tracks.LINEAR specifies that the cluster’s data organization is to be linear.CATALOG specifies that the cluster is to be defined in a user catalog, USERCAT.174 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!