Meaning of each of above parameters and other few more parameters(which are not included in above Simplified Syntax) can be referred in ‘IDCAMS- DEFINE CLUSTER command’ Section <LINK>
INDEXED parameter must be coded in DEFINE CLUSTER command to instruct VSAM that the cluster is KSDS.
Below JCL example depicts the creation of KSDS cluster:-
Description:- Above job will create VSAM KSDS cluster since INDEXED is specified as type of cluster. It will be created with name ‘PAYT.PAYROLL.PRCSKSDS.MSTR’ along with DATA component having name ‘PAYT.PAYROLL.PRCSKSDS.MSTR.DATA’ and INDEX component having name ‘PAYT.PAYROLL.PRCSKSDS.MSTR.INDEX’. This cluster will be created on volume ‘ VSMP91’. 5 cylinders of primary and 1 cylinders of secondary space will be allocated. The size of control interval specified is 4096 bytes. 15% of each CI will be retained as frees space and 10% of all CIs within a control area will be left unused. Primary key of this KSDS is 30 bytes long and in file it starts at position 0. Average and maximum records length specified as 382 bytes each which indicates, KSDS contains Fixed length records .