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 » IBM MQ Performance Monitoring » getting Msg ID of MQMessage using command in ascii

Post new topic  Reply to topic
 getting Msg ID of MQMessage using command in ascii « View previous topic :: View next topic » 
Author Message
urspradeep330
PostPosted: Thu Jul 09, 2009 9:52 pm    Post subject: getting Msg ID of MQMessage using command in ascii Reply with quote

Newbie

Joined: 26 Jun 2009
Posts: 9

Hi,

We are working on hp-ux. Our requirement is to see the message Identifier of the message in MQMD. We have MO03 tool installed in our m/c. when i use amqsbcg to browse the message i am getting the msg id, but in hex format. Is there any command to get the msg ID in ascii format. Can you please help me out in this regard.

Regards
L.Pradeep
Back to top
View user's profile Send private message
harish_td
PostPosted: Thu Jul 09, 2009 11:04 pm    Post subject: Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

Most of the ASCII characters that are converted from the message id do not have a printable representation. How will you be able to pass this ASCII value to your program? Your safest bet is to get based on hex value.

You can also try the ma01 support pac or rfhutil to get based on message id
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Jul 09, 2009 11:17 pm    Post subject: Re: getting Msg ID of MQMessage using command in ascii Reply with quote

Grand High Poobah

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

urspradeep330 wrote:
when i use amqsbcg to browse the message i am getting the msg id, but in hex format.


This is because the MsgId is a byte array 24 bytes long, not a string. It can't be represented in ASCII unless you're not using the system generated value but setting it deliberately to an ASCII string.

In which case it's still a byte array holding the string as hex values! There are numerous discussions on the forum of:

a) Why treating msg or correl ids as strings is at best foolhardy and at worse dangerous

b) Why not using system generated values is at best dangerous and at worst lethal.

The search function is your friend.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » IBM MQ Performance Monitoring » getting Msg ID of MQMessage using command in ascii
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.