VSAM LDS
LDS Stands for ‘Linear DataSet’.
Create a LDS Cluster
Example to define an LDS Cluster

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/Warning
You 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
Note
Sometimes, 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.
How to delete VSAM cluster and set MAXCC as 0 every time

If you try to list this cluster in 3.4, it will not be present as it is deleted.
In this case, we are forcing to set MAXCC as 0.