IDCAMS utility is used to create a VSAM LDS Cluster. The details like Freespace, tracks, control interval size, volume, data component is given.
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. Here, the cluster is ‘MATEKS.LDS.CLUSTER’ and data component is ‘MATEKS.LDS.DATA’
Note/WarningYou should not code Record Size(RECSZ) parameter for LDS because it is not required for LDS. The storage for LDS is virtual storage and hence if you code RECSZ, you will get an error as below -
How to delete VSAM LDS Cluster
If you want to delete VSAM LDS cluster, then you can use the ‘DELETE’ functionality of IDCAMS
Syntax 1: DELETE (‘LDS-CLUSTER-NAME’) CLUSTER
Syntax 2: DELETE (‘LDS-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.