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


Message area header

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

The message area header contains statistical, pointer, and general information. Its contents are unrelated to the individual messages. Figure 1 shows the format of the message area header.

Figure 1. Format of the Message Area Header
Byte 0
Flag Byte
bit 0=1
Full message area header has been stored.
bit 0=0
Only flag byte of message area header has been stored. (Implies that no messages have been stored.)
bits 1-7
Reserved (set to binary zeros).
Bytes 1-2
Length of message area header (includes flag byte and length byte).
Byte 3
Request type code:
X'01'
OPEN
X'02'
CLOSE without TYPE=T
X'03'
CLOSE TYPE=T
Bytes 4-11
ddname used for ACB.
Bytes 12-13
Total number of messages (error or attention conditions) issued by open or close processing.
Bytes 14-15
Number of messages stored by open or close processing in message area.
Bytes 16-19
Address of message list of first message in message area.

The function of the ACB error flag field remains unchanged whether this optional message area is specified. At the end of an open or close, this field contains either X'00' (indicating no error or attention condition occurred) or a nonzero code. The ACB error flag byte contains the nonzero open or close reason code corresponding to the error or attention condition that occurred with the highest severity.

Message area header information is stored only when an attention or error condition is detected. (That is, when the ACB error flag field is set to a nonzero value.) The header information consists of the flag byte only if the message area length (MLEN) is not large enough to accommodate the full message area header. In this case, bit 0 of the flag byte is zero.

Before accessing the message header information (bytes 1 through 19), test byte 0 to see if more information is stored. If MLEN=0, no header information is stored, not even the flag byte. If the full message area header is stored, bytes 1 and 2 contain its actual length. Your program should be sensitive to this length when interrogating the message area header.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014