VSAM LDS

VSAM LDS

LDS Stands for ‘Linear DataSet’.

Create a LDS Cluster

Example to define an LDS Cluster

VSAM LDS - how to Create Cluster using IDCAMS

IDCAMS utility is used to create a VSAM LDS Cluster. The details like Freespace, tracks, control interval size, volume, data component is given.

Output

VSAM LDS - Cluster with Data component

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’

VSAM LDS ERRORdue to coding of RECSZ- Record size is not required

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

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.

Output cluster will be deleted and MAXCC will be 0

Tutorials for all brains!