IBM Support

How to do a manual byte swapping from the output of IBM MQ amqsbcg in Windows and Linux x86 to find out the DLQ reason code

Question & Answer


Question

To provide the most common reason why IBM MQ Administrators may want to do a manual byte swapping when working with Intel x64 64-bit systems such as Windows and Linux x86:
You are dealing with undelivered messages found in the Dead Letter Queue (DLQ) of a queue manager and you want to find out the reason why a message was sent to the DLQ.

Answer

+++ Summary
The attached PDF file provides all the steps to help you do a byte swap of the following 4 bytes:
22 08 00 00
The following visual aid can be help you to do all the steps. See explanation in the PDF file.
22 08 00 00  => 00 00 08 22
         ++-----++
      ++ --------- ++
   ++ --------------- ++
++ --------------------- ++
After a byte swap:                       00 00 08 22   
It can be represented in Hexadecimal as: 0x00000822
 
+++ See attached PDF file:
+ tags:
Author: Angel Rivera;
+++ end +++

[{"Type":"MASTER","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[{"code":"a8m3p000000PCH0AAO","label":"Administration"}],"ARM Case Number":"TS016013121","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
10 May 2024

UID

ibm17151034