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

Post new topic  Reply to topic
 Dead Letter queue « View previous topic :: View next topic » 
Author Message
tkurian
PostPosted: Tue Nov 12, 2002 10:43 am    Post subject: Dead Letter queue Reply with quote

Novice

Joined: 23 Jan 2002
Posts: 11

I have some messages that have come to my dead letter queue. I know there was a way to look at the dead letter queue header to find out the reason code for the message. Can anyone tell me how to read the hex code to come up with the reason code?
Back to top
View user's profile Send private message
philipaby
PostPosted: Tue Nov 12, 2002 11:17 am    Post subject: Reply with quote

Novice

Joined: 09 Mar 2002
Posts: 13

Hi TKurian,
You can either use a dead letter queue reader program to read it into an MQDLH or if you have the MQExplorer with you (i assume you would) you can just read the message straight of the dead letter queue and MQExplorer will adjust the view to include the reason code for you. There is a dead letter header tab which will show the reason code. If your queue manager is on another machine which is not the same as the machine on which the MQExplorer is running. You can see it using the 'Show remote queue manager' option.

Kind Regards
Aby Philip
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Wed Nov 13, 2002 12:22 am    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

The reason code is located on bytes # 12 and 13. If your queue manager is on an Intel machine, the least significant byte is first so you need to change their places to read them correctly. Remember the reason code is in hex
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Nov 13, 2002 9:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

If you are interested in processing messages on the DLQ, you can use the runmqldq command. It is documented in the System Admin guide and it allows you to pass in some rules that it will use to process the messages.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
PeterPotkay
PostPosted: Wed Nov 13, 2002 6:05 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7716

mgrabinski wrote:
The reason code is located on bytes # 12 and 13. If your queue manager is on an Intel machine, the least significant byte is first so you need to change their places to read them correctly. Remember the reason code is in hex


What is meant by an Intel machine? Windows?

What if the message originated on the mainframe and is in EBCIDIC but somehow found itself on an NT queue manager's DLQ? Do I still need to switch the bytes?

Is this the Big Endian / Little Endian deal I sometimes hear about?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Nov 13, 2002 9:19 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

Peter, yes exactly.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mgrabinski
PostPosted: Wed Nov 13, 2002 10:24 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

The DLQ header is always generated by the destination queue manager. So if a mesasge from mainframe gets to the DLQ on Windows, its reason code will be represented as other integers on Intel - LSB first.

It's a matter of processor achitecture, not operating system.

It's of course recomended to use runmqdlq (it will read the reson code properly). But sometimes you just need to check the reason code, so we need to have this tip in mind.
_________________
Marcin Grabinski <><
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
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.