Accessing files in RLS mode
Record-level sharing (RLS) is a VSAM function, provided by DFSMS Version 1 Release 3 and later releases, that enables VSAM data to be shared, with full update capability, between many applications running in many CICS regions.
With RLS, CICS regions that share VSAM data sets can reside in one or more MVS™ images within an MVS parallel sysplex. RLS also provides some benefits when data sets are being shared between CICS regions and batch jobs.
If you open a file in RLS mode, locking takes place at the record level instead of the Control-Interval level, thus reducing the risk of deadlocks.
CICS supports record-level sharing (RLS) access to the following
types of VSAM data set:
- Key sequenced data sets (KSDS). Note that if you are using KSDS, you cannot use the relative byte address (RBA) to access files.
- Entry sequenced data sets (ESDS). Note that although RLS access mode is permitted for entry sequenced data sets (ESDS), it is not recommended, as it can have a negative effect on the performance and availability of the data set when you are adding records. (See Using VSAM record-level sharing).
- Relative record data sets (RRDS), for both fixed and variable length records.
Note: If you issue the SET FILE EMPTY command for a file that
specifies
RLS mode, the request is accepted but is ignored all the time the
file is opened in RLS mode. If you close and switch the file to non-RLS
mode, the data set is then reset to empty (provided it is defined
as reusable on its IDCAMS definition).
Most types of data set are eligible to participate in VSAM record
level sharing and most CICS applications can benefit from this mode
of access. However, there are some limitations that could affect some
applications. The following types of file, data set, or method of
access are
not
supported in RLS mode:
- RBA access to a KSDS
- Key-range data sets
- Temporary data sets
- VSAM clusters with the IMBED attribute
- Direct opening of an alternate index
- Opening individual components of a cluster
- Access to catalogs or to VVDS data sets
- CICS-maintained data tables
- Hiperbatch