PUT—Write a record

Use the PUT macro to write (load) records to an empty data set, and insert or update records into an existing data set.

To do a PUT UPD you must first do a GET UPD for the record.

The format of the PUT macro is:

label
specifies 1 to 8 characters that provide a symbolic address for the PUT macro.
RPL=address
specifies the address of the request parameter list defining the request. You may specify the address in register notation (using a register from 1 through 12, enclosed in parentheses) or specify it with an expression that generates a valid relocatable A-type address constant.

Rule: If the PUT macro is used to load records into an empty data set, the STRNO value in the access method control block must be 1, and RPL OPTCD=DIR must not be specified. However, for an empty RRDS, DIR is allowed.