Previous Topic Next topic Print topic


DEFINE CLUSTER

Parameters:

MFJAMS uses the parameters described in the following table. All other parameters are ignored.

NAME(data-set-name)
Name of the VSAM data set. This parameter is required.
INDEXED
That a KSDS data set is being defined.
NONINDEXED
That an ESDS data set is being defined.
NUMBERED
That an RRDS data set is being defined.
KEYS(lengthoffset)
Length and offset, relative to 0, of the primary key field for a KSDS data set. The offset must be within the first 4096 bytes of the record. length plus offset must not exceed the maximum length of the record. The default is KEYS(64 0).
RECORDSIZE(averagemaximum)
Average and maximum lengths of the records, expressed in decimal format. If the lengths are the same, a fixed-length format is assumed. If the lengths are different, a variable-length format is assumed. The default is RECORDSIZE(4089 4089).
MODEL(data-set-name)
Name of a cataloged VSAM data set that has the same KEYS and RECORDSIZE parameters as this new data set. It is an alternative to specifying the parameters explicitly.

Comments:

  • INDEXED, NONINDEXED and NUMBERED are mutually exclusive. INDEXED is the default.
  • MFJAMS does not allow duplicate entries of the primary key.
  • KEYS and RECORDSIZE override the values obtained from MODEL.
  • MFJAMS does not support the Micro Focus split-key and key-compression features. MSS cannot open a VSAM data set that uses either of these features.

Example:

Here is a typical job to define a cluster:

//DEFCLUS  JOB  CLASS=A
//IDCSTEP  EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
DEFINE CLUSTER(NAME(TEST.KSDS.DUMMY) KEYS(5,0) -
       RECORDSIZE(80,80))

Note the use of the continuation character (-) in the DEFINE CLUSTER statement.

Previous Topic Next topic Print topic