Return key offset specification - Key = 'C00C'

DINRKEYO requests the key offset. The key offset is the position of the first byte of the key in each logical record of the specified VSAM data set. If the key is at the beginning of the logical record, the offset is zero. When you code DINRKEYO, # must be 1, LEN must be at least 4 and can be longer, and the PARM field must be the length specified by the value in LEN.

The system returns into PARM a 4 byte hexadecimal number representing the offset of the key. If there is a key offset associated with the data set, it stores 4 into LEN. The value of the offset is less than or equal to 65535 bytes.

Example: To determine the key offset in a record of the specified VSAM data set, code:
KEY    #      LEN    PARM
C00C   0001   0004   - - - -