Previous Topic: FILE Functions for VSAM RecordsNext Topic: Browse a VSAM File


View a VSAM Record

To view a VSAM record, specify the READ operation on the FILE definition.

  1. Enter the following required information for all VSAM files:
    FUNC= GET
    RCID= key
    

    For a KSDS file, the key is a full or generic key, depending on the optional SRCHTYP field. Specify the key in hexadecimal or character format or a combination of both.

    For an ESDS file, the key is a four‑byte hexadecimal number representing the relative byte address (RBA).

    For an RRDS file, the key is a four‑byte hexadecimal number representing the relative record number.

  2. Enter the following optional information for a KSDS file:
    SRCHTYP= FKEQ/FKGE/GKEQ/GKGE