Previous Topic Next topic Print topic


PUT

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

Parameters

RPL=address
Request parameter list to use for writing to a VSAM file.
dcb-address
Data control block to use for writing to a QSAM file.
area-address
Address of the record to be written to a QSAM file.

Comments

Writes a data record to an open QSAM or VSAM file.

If the VSECOMP compiler directive is specified, Enterprise Developer Assembler emulates 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 PUT (1) or PUT (1)(0) is accepted.

A utility macro SADV (Save Address Value) used by PUT 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.

Example

PUT RPL=OUTRPL

PUT OUTDCB,RECORD

Previous Topic Next topic Print topic