|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
Retrieving Junk Message-Id header value |
View previous topic :: View next topic |
Author |
Message
|
Kumar Nadar |
Posted: Wed Jan 09, 2002 10:26 am Post subject: |
|
|
Newbie
Joined: 16 Oct 2001 Posts: 9
|
Hi All,
I set the message id to some string value for e.g 20997 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 know why it is so.
Can I know how to get the actual message-id value?
Is some decoding or conversion need to be done at java side?
Thanks In Advance,
Kumar
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Jan 09, 2002 11:03 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
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 |
|
 |
|
|
  |
|
Page 1 of 1 |
|
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
|
|
|
|