z/OS DFSMS Macro Instructions for Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


WRITE completion codes—write a block (create a direct data set with BSAM)

z/OS DFSMS Macro Instructions for Data Sets
SC23-6852-02

After the write has been scheduled and control returns to your problem program, the three high-order bytes of register 15 are set to 0. The low-order byte contains a return code.

The WRITE return codes are as follows. For fixed-length records, the return codes are unpredictable.

Return Code (15) Fixed-Length (SF or SD) Variable or Undefined- length (SF or SFR) Variable or Undefined- length (SZ)
00 (X'00') Block is written. (If the previous return code was 08, a block is written only if the DD statement specifies secondary space allocation and sufficient space is available.) Block is written. (If the previous return code was 08, a block is written only if the DD statement specifies secondary space allocation and sufficient space is available.) Capacity record was written; another track is available.
04 (X'04') Block is written, followed by a capacity record. (If the previous return code was 08, a block is written only if the DD statement specifies secondary space allocation and sufficient space is available.) Block was not written; write a capacity record (SZ) to describe the current track, then reissue the WRITE macro.
08 (X'08') Block is written, followed by a capacity record. The next block requires secondary space allocation. Capacity record was written. The next block requires secondary space allocation. This code is not issued if the WRITE macro is issued on a one-track secondary extent.
12 (X'0C') Block is not written; issue a CHECK macro for the previous WRITE macro, then reissue the WRITE macro. Block is not written; issue a CHECK macro for the previous WRITE macro, then reissue the WRITE macro. Block is not written; issue a CHECK macro for the previous WRITE macro, then reissue the WRITE macro.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014