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 API Support » EBCDIC to ASCII conversion of MessageID and Correlation ID

Post new topic  Reply to topic
 EBCDIC to ASCII conversion of MessageID and Correlation ID « View previous topic :: View next topic » 
Author Message
gouthamt
PostPosted: Mon Aug 12, 2002 10:35 am    Post subject: EBCDIC to ASCII conversion of MessageID and Correlation ID Reply with quote

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
View user's profile Send private message Send e-mail
kirani
PostPosted: Mon Aug 12, 2002 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
meriton
PostPosted: Tue Aug 20, 2002 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Tue Aug 20, 2002 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » EBCDIC to ASCII conversion of MessageID and Correlation ID
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.