Previous Page | Next Page

Accessing VSAM Data Sets

Using Record-Level Sharing with VSAM

SAS provides support for the record-level sharing (RLS) access feature for VSAM data sets. For the RLS access feature to work, you must define your VSAM clusters as eligible for RLS access.

RLS eligible data sets must be SMS data sets that were defined with a LOG specification. The details of RLS definition, restrictions, and use are contained in the IBM Data Facility Storage Management Subsystem (DFSMS) documentation.

SAS determines whether a VSAM data set is RLS eligible when it opens the data set. If the data set is RLS eligible, SAS automatically opens it in RLS mode. You can override this action by specifying the NRLS option in the INFILE statement that you use to define the data set to be opened. The VSAMRLS system option can be used to specify RLS processing for all VSAM data sets that are accessed during a SAS session. (See VSAMRLS System Option.) Opening the data set in non-RLS mode might generate the following results:

The operation of RLS is essentially transparent to users. However, make sure you specify DISP=SHR in the statement that defines the VSAM file you are opening.

Previous Page | Next Page | Top of Page