|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
EBCDIC to ASCII conversion of MessageID and Correlation ID |
« View previous topic :: View next topic » |
Author |
Message
|
gouthamt |
Posted: Mon Aug 12, 2002 10:35 am Post subject: EBCDIC to ASCII conversion of MessageID and Correlation ID |
|
|
Newbie
Joined: 12 Aug 2002 Posts: 1
|
I have question regarding EBCDIC to ASCII conversion of Message ID and Correlation ID on MQ.
We have a Mainframe application (Written in COBOL) which puts messages on the queue.
This messages are retrieved by another application(written in Java) running on Sun Solaris (java).
The Mainframe application sets both the MQD-MSGID as well as CorrelationID to identify the message.
I use the option MQGMO_CONVERT and msg format of MQC.MQFMT_STRING.
These options help in reading the actual msg but the msgID and
-------------------------------------------------------------------------
correlationID are not converted.
-------------------------------------
Is there some other option that we are missing which would convert both the msgID and corrID?
We need these ID's to retrieve the specific msgs.
Please help us to provide the solution.
Thanks
Goutham _________________ gouthamt |
|
Back to top |
|
 |
kirani |
Posted: Mon Aug 12, 2002 11:09 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Goutham,
MsgId and CorrelId are Binary fields and they can not be converted using MQGMO_CONVERT option.
You could either use EBCDIC values of MsgId/CorrelID to retrieve specific message from the qeue or write a function, which will convert Binary String into ASCII. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
meriton |
Posted: Tue Aug 20, 2002 5:36 pm Post subject: |
|
|
Novice
Joined: 07 Aug 2002 Posts: 24
|
Hi Kirani,
I am having the same problem,I get messages from Mainframe.Get the correlId and store in a byte array b[].(on Unix)
Set the correlId to get the rest of messages that matches the correlId.It does not work.
Do you have any idea how to do this ..
TIA |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Aug 20, 2002 8:20 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
I do this all the time.
Code: |
byte[] msgId;
...
...
msgId = getMsg.messageId;
...
...
getMsg.clearMessage();
getMsg.messageId = msgId; |
You better show us your code.
later
Roger... _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
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
|
|
|
|