WRITE

The assembler calls the exit with a request type of 4 (WRITE) when the exit is writing the associated data records. The buffer pointer field points to the associated data record, and the buffer length contains the length of the record. The record length for variable-length records does not include the 4-byte length of the record descriptor word (RDW), and the buffer pointer field points at the associated data header, not the RDW.

Note: A reason code of 8 requests redrive of the exit.
z/VM® and z/OS®
Depending on the setting of the ASA assembler option, the record has either an American National Standard or a machine printer control character at the start of the record.

The options field contains a value that represents the type of listing record that is passed. The listing record types, and their corresponding options values, are shown in For the LISTING exit.

The user exit should maintain the absolute record number and the relative record number. These fields are set to zero before the OPEN request.