ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Dead Letter queue reason code

Post new topic  Reply to topic
 Dead Letter queue reason code « View previous topic :: View next topic » 
Author Message
mqjava
PostPosted: Tue Jun 29, 2010 6:26 am    Post subject: Dead Letter queue reason code Reply with quote

Voyager

Joined: 25 May 2009
Posts: 80
Location: New Jersey

Hi All,

When i browse the dead letter message through MQ explorer and see the reason code it says - "MQRC_Q_FULL", but when i browse the same dead letter message throuhg amqsbcg i get the below -

00000000: 444C 4820 0100 0000 0508 0000 4150 504C 'DLH ........QUEU'

And when i convert the third word 0508 0000 to decimal i dont get -"2053" which is MQRC_Q_FULL, whats wrong here, why the messages in the dead letter queue doesnt show the correct reason code?

Thanks.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Jun 29, 2010 6:49 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Try reading it backwards...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Tue Jun 29, 2010 6:52 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Code:

44 4C 48 20 01 00 00 00--05 08 00 00 54 45 53 54  |DLH ........TEST|
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20  |                |
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20  |                |
20 20 20 20 20 20 20 20--20 20 20 20 51 4D 31 20  |            QM1 |
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20  |                |
20 20 20 20 20 20 20 20--20 20 20 20 20 20 20 20  |                |
20 20 20 20 20 20 20 20--20 20 20 20 22 02 00 00  |            "...|
B5 01 00 00 4D 51 53 54--52 20 20 20 0B 00 00 00  |╡...MQSTR    ...|
65 62 53 70 68 65 72 65--20 4D 51 5C 62 69 6E 5C  |ebSphere MQ\bin\|
61 6D 71 72 6D 70 70 61--2E 65 78 65 32 30 31 30  |amqrmppa.exe2010|
30 36 32 39 31 34 34 34--30 36 39 38 48 45 4C 4C  |062914440698HELL|
4F 33                  --                         |O3              |



And in the Dead Letter Header it gives Reason : MQRC_Q_FULL Not the Reason Code. In Data Section it shows what shown above.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Tue Jun 29, 2010 6:57 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

shashivarungupta wrote:
...And in the Dead Letter Header it gives Reason : MQRC_Q_FULL Not the Reason Code...


Another magnificent statement from you...MQExplorer uses the RC to output the string associated with it.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
mqjava
PostPosted: Tue Jun 29, 2010 7:09 am    Post subject: Reply with quote

Voyager

Joined: 25 May 2009
Posts: 80
Location: New Jersey

exerk wrote:
Try reading it backwards...


0508 0000

convert it backwards - 0000 0805

Now when i convert it to decimal i get 2053 which is queue full.
why is it so?

Thanks.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Tue Jun 29, 2010 7:22 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

exerk wrote:
shashivarungupta wrote:
...And in the Dead Letter Header it gives Reason : MQRC_Q_FULL Not the Reason Code...


Another magnificent statement from you...MQExplorer uses the RC to output the string associated with it.



_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Jun 29, 2010 7:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjava wrote:
Now when i convert it to decimal i get 2053 which is queue full.
why is it so?


If you're asking why the message is in the dead letter queue because the original was full, think about it.

If you're asking why the number is backwards, ask Mr Google about big endian & little endian
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjava
PostPosted: Tue Jun 29, 2010 10:38 am    Post subject: Reply with quote

Voyager

Joined: 25 May 2009
Posts: 80
Location: New Jersey

Thanks Vitor.

If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer.

Thanks.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Jun 29, 2010 10:49 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

mqjava wrote:
...If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer...


They are in the "...proper format / correct order...", note what Vitor said in regard to big/little endian!

Once you have 'translated' the hex code to decimal, you can use the MA0K SupportPac to help you with the rest...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 29, 2010 11:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

exerk wrote:
mqjava wrote:
...If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer...


They are in the "...proper format / correct order...", note what Vitor said in regard to big/little endian!


To reiterate what both of my illustrious colleagues have said... There is *more than one* "proper format/order". There are two. One is known as "big endian" and the other is known as "little endian".

Sometimes you have to think big and sometimes you have to let the little end do the thinking.
Back to top
View user's profile Send private message
mqjava
PostPosted: Tue Jun 29, 2010 2:17 pm    Post subject: Reply with quote

Voyager

Joined: 25 May 2009
Posts: 80
Location: New Jersey

mqjeff wrote:
exerk wrote:
mqjava wrote:
...If the numbers are not in the proper format / correct order, whats the best way to check the reason codes from dead letter message without using any GUI toold like MQ explorer...


They are in the "...proper format / correct order...", note what Vitor said in regard to big/little endian!


To reiterate what both of my illustrious colleagues have said... There is *more than one* "proper format/order". There are two. One is known as "big endian" and the other is known as "little endian".

Sometimes you have to think big and sometimes you have to let the little end do the thinking.


There is *more than one* "proper format/order". There are two.

This cleared my doubts, thanks to all.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Jun 30, 2010 4:28 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

Big endian = most signifcant byte (Biggest) of an integer comes first
Little endian = Least significant byte of an integer comes first

Little endian is most often encountered on Intel x86 series CPUs. I remember this association because the first 3 letters of "little" are also in the word "Intel".
_________________
Glenn
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Jul 01, 2010 4:53 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

In other words, it's an Intel issue. Intel hardware stores numbers in reverse order.

So, on Windoze, for example, 0508 is really 0805 (hex). Convert 0805 hex to decimal.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Dead Letter queue reason code
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.