Message content program

 

This displays message content. The content is formatted and split into two parts:

  1. Message descriptor

  2. Message buffer

The message descriptor shows the contents of each field on a separate line.

The message buffer is formatted depending on its contents. If the buffer holds a dead letter header (MQDLH) or a transmission queue header (MQXQH), these are formatted and displayed before the buffer itself.

Before the buffer data is formatted, a title line shows the buffer length of the message in bytes. The maximum buffer size is 32768 bytes, and any message longer than this is truncated. The full size of the buffer is displayed along with a message indicating that only the first 32768 bytes of the message are displayed.

The buffer data is formatted in two ways:

  1. After the offset into the buffer is printed, the buffer data is displayed in hexadecimal.

  2. The buffer data is then displayed again as EBCDIC values. If any EBCDIC value cannot be printed, it prints a . (period) instead.

We can enter D for delete, or F for forward into the action field. If you choose to forward the message, the forward-to queue and queue manager name must be filled in appropriately. The defaults for these fields are read from the message descriptor ReplyToQ and ReplyToQMgr fields.

If you forward a message, any header block stored in the buffer is stripped. If the message is forwarded successfully, it is removed from the original queue. If you enter invalid actions, error messages are displayed.

An example help panel called CSQ4CHP9 is also available.

 

Parent topic:

Design of the sample


fg18790_