To create RRDS cluster in VSAM, you can use the utility ‘IDCAMS’ where you need to define the cluster name, Data component of the cluster and details of the cluster like FREESPACE, RECSZ, TRACS, CISZ, VOLUMES etc.
Output
You can go to ‘Data Set List Utility’ to see that the cluster is created. As you can see this in the above picture
NoteIt is important to note that we have to give 'NUMBERED' for RRDS cluster definition.
If you want to load the records to the cluster, you can use ‘REPRO’ command which is similar to how we will do for ESDS and KSDS.
How to delete VSAM RRDS Cluster
If you want to delete VSAM cluster for RRDS, then you can use the ‘DELETE’ functionality of IDCAMS
Syntax 1: DELETE (‘RRDS.CLUSTER.NAME’) CLUSTER
Syntax 2: DELETE (‘RRDS.CLUSTER.NAME’) CLUSTER SET MAXCC=0
NoteSometimes, if the cluster is already deleted, then you can get a maximum return code as 8. In order to get maximum condition code as 0, you can intentionally set MAXCC as 0 as shown above.