Define a Linear Data Set Cluster in a Catalog: Example 11
In 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 define the linear data set cluster EXAMPLE.LDS01. The parameters
are:
- NAME 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 for the cluster's space. When the cluster 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.