Previous Topic: Arguments for OPSVSAMNext Topic: Output Variables


Access Strategies

Consider the following access strategies for each type of VSAM file:

KSDS

A key sequenced data set can be accessed sequentially without a key argument, or it can be accessed directly by specifying a full or partial key. To avoid a record not found condition, unless the KGE search type is specified, any partial keys that you specify for point and read functions must match a real key up to the length specified.

The key argument for OPSVSAM is a string value. The key length can be specified when a substring or a blank padded extension of the string is desired. The default key length is the length of the key argument string.

RRDS

A relative record data set can be accessed sequentially without a key argument, or it can be accessed directly by specifying the relative record number of the desired record. Record inserts must indicate the new relative record number. You can specify the key argument for OPSVSAM as a REXX numeric string or a 4-byte binary value (for example, '0000001'x).

ESDS

An entry-sequenced data set can be accessed sequentially without a key argument, or it can be accessed directly by specifying the relative byte address of the desired record. Record inserts are always placed at the end of a data set. You can specify the key argument for OPSVSAM as a four-byte RBA binary value only (for example, '000001A0'x).