In this example, an SMS-managed key-sequenced cluster is defined.
The SMS data class space allocation is overridden by space allocations
at the data and index levels. The DEFINE CLUSTER command builds a
catalog entry and allocates space to define the key-sequenced cluster
SMS04.KSDS02.
//DEFINE JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
DEFINE CLUSTER -
(NAME (SMS04.KSDS02) -
STORAGECLASS (FINCE02) -
MANAGEMENTCLASS (MC1985) -
DATACLASS (VSAMDB05)) -
LOG(ALL) -
LOGSTREAMID(LogA) -
DATA -
(MEGABYTES (10 2)) -
INDEX -
(KILOBYTES (25 5))
/*
The parameters for this command are as follows:
- STORAGECLASS is an installation defined name of a storage class,
FINCE02, to be assigned to the cluster.
- MANAGEMENTCLASS is an installation defined name of a management
class, MC1985, to be assigned to the cluster. Attributes associated
with a management class control the cluster's retention, backup, migration,
etc.
- DATACLASS is an installation defined name of a data class, VSAMDB05,
assigned to the cluster. Record size, key length and offset, etc.,
are derived from the data class and need not be specified. If MAXVOLUMES
or the space parameters (MEGABYTES and KILOBYTES) were not specified,
the values in the data class would be used.
- LOG(ALL) specifies that changes to the sphere accessed in RLS
and DFSMStvs mode can be backed out and forward recovered using external
logs.
- LOGSTREAMID gives the name of the forward recovery log stream.
The DATA and INDEX parameters are:
- MEGABYTES, used for DATA, allocates a primary space of 10 megabytes
to the data component. A secondary space of 2 megabytes is specified
for extending the data component.
- KILOBYTES, used for INDEX, allocates a primary space of 25 kilobytes
to the index component. A secondary space of 5 kilobytes is specified
for extending the index component.