GET

[label] GET RPL=address|dcb-address,[area-address]

Parameters

RPL=address
RPL to use with a VSAM GET request.
dcb-address
Data control block to use with a QSAM GET request.
area-address
Address of the area to hold the record read from the QSAM file.

Comments

Retrieves a record from a VSAM or QSAM file.

If the VSECOMP compiler directive is specified, Enterprise Developer Assembler support includes emulating the DOS/VSE version of this macro. In this case the expanded code is larger than that produced on the mainframe and may cause NO BASE REGISTER error messages. The unusual DOS/VSE register conventions for register 1 and 0 are also supported, so syntax of the form GET (1) or GET (1)(0) is accepted.

A utility macro SADV (Save Address Value) used by GET expands slightly differently when VSECOMP is specified. Normally, SADV expands to LA register,dcb-address. With VSECOMP specified the instruction L register,=A(dtf-address) is produced instead.

Examples

GET RPL=INRPL

GET INFILE,RECORD