Previous Topic: Define and Initialize Data SetsNext Topic: Initialize the  Data Sets


Define Data Sets

Use JCL similar to the following example to define a data set.

//DEFINEIT	EXEC	PGM=IDCAMS
//SYSPRINT	DD	SYSOUT=A
//SYSIN		DD	*
	DEFINE	CLUSTER ( -
		NONINDEXED			/* REQUIRED */ -
		SHAREOPTIONS(2 3)		/* OR (3 3) */ -
		SPEED -
		UNIQUE -
		CYLINDERS(5 5) -
		VOLUMES(VSAM01) -
		NAME('VTAM.TCADS') -
		RECORDSIZE(16377 16377)	/* MUST BE CISIZE-7 */ -
		CONTROLINTERVALSIZE( 16384) ) 

Note: Use SHAREOPTIONS (2 3) if the data set is only being used in one region. Use SHAREOPTIONS (3 3) if the data set will be updated from two regions.