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 » General IBM MQ Support » ASCII to EBCDIC conversion.

Post new topic  Reply to topic
 ASCII to EBCDIC conversion. « View previous topic :: View next topic » 
Author Message
subrata_dg
PostPosted: Tue Oct 11, 2005 1:59 am    Post subject: ASCII to EBCDIC conversion. Reply with quote

Newbie

Joined: 22 Sep 2005
Posts: 3

Hi,
Can anyone please advice me about ASCII to EBCDIC conversion by MQ. Actually I am getting the message (in ASCII) from a queue but can't figure out how to convert this to EBCDIC. I understand that MQ can do this conversion but not sure how to get on with it. I am using COBOL on AS400.

I would need to convert my reply messasge (in EBCDIC) to ASCII as well before writing back to the queue.

Can anyone help.

Thanks a lot.

Subrata_dg
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Oct 11, 2005 2:21 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

You'll need to use "GMO_CONVERT" as document here:

http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi.cgi?CTY=US&FNC=SRX&PBL=SC34659600#

Please read what the APR has to say about conversion, then, if you still have a question,
post back to this thread.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
subrata_dg
PostPosted: Tue Oct 11, 2005 3:02 am    Post subject: Reply with quote

Newbie

Joined: 22 Sep 2005
Posts: 3

Thanks for the reply.

Yes, I have gone through the documentation.

As I understand the Options parameter of the Get Message Options structure should have GMO_CONVERT. The other two parameters CodedCharSetId and Encoding in the Message Descriptor structures need to be populated as well. I don't have a clue what these two parameters would be to get the converted message at MQGET and MQPUT. Or is there something else that needs to be done to get the message converted.

Let me know if my view is correct or is there an entirely different approach to this.

Thanks
Subrata_dg
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Oct 11, 2005 3:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

CCSID and Encoding are defaulted to the correct value for the platform you are running on. Provided that the Format field was set to MQFMT_STRING by the sending application, your GET with CONVERT should do the trick.

Same is true on the sending side, all you really need to do is set the Format field (and ensure the message body is all string data) and PUT the message.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » ASCII to EBCDIC conversion.
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.