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 IndexIBM MQ API SupportProblem with Message ID field

Post new topicReply to topic
Problem with Message ID field View previous topic :: View next topic
Author Message
Kumar Nadar
PostPosted: Wed Jan 09, 2002 1:29 am Post subject: Reply with quote

Newbie

Joined: 16 Oct 2001
Posts: 9

Hi All,

I set the message id to time-stamp value while putting a data into the queue from mainframe side. This data is then passed onto the unix queue.
But When I read the Message Id of the data from unix queue using java client I get the following junk value
ÃâØ@ÔØãõ@@@@@@@@·åûcvÇ.

I do'nt why it is so.
Can I know how to get the actual message-id value?
Is some decoding need to be done?

Thanks In Advance,
Kumar
Back to top
View user's profile Send private message
NickB
PostPosted: Wed Jan 09, 2002 3:36 am Post subject: Reply with quote

Centurion

Joined: 20 May 2001
Posts: 107
Location: Zurich Financial Services

Is the rest of the message garbage or just the message id? If the whole thing looks like garbage then this is a conversion problem and you'll either need to set conversion on the sender channel to the Unix system or do a get-with-convert in your application.
Back to top
View user's profile Send private message
Kumar Nadar
PostPosted: Wed Jan 09, 2002 4:30 am Post subject: Reply with quote

Newbie

Joined: 16 Oct 2001
Posts: 9

Hi NICKB,

Only the properties of the message such as message-id, correlation-id are coming as junk values whereas the actual data in the message is coming in proper format.

How to do a get-with conversion in my application? Any sample code

Thanks in Advance,
Kumar

[ This Message was edited by: Kumar Nadar on 2002-01-09 04:37 ]
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Jan 09, 2002 8:36 am Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

MSG-ID and CRL-ID have a format of MQBYTE, which is a binary representation that does not get translated.

Put the time stamp in the body of the message. After all, if the sending APPLICATION generates the stamp, and the receiving APPLICATION uses it, then its APPLICATION data and should be in the message where it will get converted.

If you still want, you could convert the message-ID to ASCII before putting the message with the below code (I never actually used this code myself), but your probably better off not putting application data in MQMD fields anyway.

006269
006270 01 W05-TRANSLATES.
006271 03 W05-EBCDIC PIC X(94) VALUE
006272 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567
006273- '89~!@#$% &*()_+-={} :";''<>?,./'.
006274 03 W05-ASCII PIC X(94) VALUE
006275 X'4142434445464748494A4B4C4D4E4F505152535455565758595A616263
006276- '6465666768696A6B6C6D6E6F707172737475767778797A303132333435
006277- '363738397E21402324255E262A28295F2B2D3D7B7D7C5B5D5C3A223B27
006278- '3C3E3F2C2E2F20'.
006280*

021811 INSPECT MQMD-MSGID
021820 CONVERTING W05-ASCII TO W05-EBCDIC




_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportProblem with Message ID field
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.