Define a Reusable Entry-Sequenced Cluster in a Catalog: Example 6
In this example, a reusable entry-sequenced cluster is defined.
You can use the cluster as a temporary data set. Each time the cluster
is opened, its high-used RBA can be reset to zero.
//DEFCLU5 JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//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 define the entry-sequenced cluster, EXAMPLE.ESDS2. The DEFINE CLUSTER
command assigns two tracks for the cluster's use. The command's parameters
are:
- NAME specifies that the cluster's name is EXAMPLE.ESDS2.
- RECORDSIZE specifies that the records are variable length, with an average size of 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 for the cluster's space. When the cluster is extended, it is to be extended in increments of 1 cylinder.
- NONINDEXED specifies that the cluster's data organization is to be entry-sequenced. This parameter overrides the INDEXED parameter.
- REUSE specifies that the cluster is to be reusable. Each time the cluster is opened, its high-used RBA can be reset to zero and it is effectively an empty cluster.
- CATALOG specifies that the cluster is to be defined in a user catalog, RSTUCAT2.