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 » Data Conversion

Post new topic  Reply to topic
 Data Conversion « View previous topic :: View next topic » 
Author Message
Shalini
PostPosted: Tue Jun 04, 2002 6:06 am    Post subject: Data Conversion Reply with quote

Master

Joined: 30 Apr 2002
Posts: 224
Location: India

Hi,

We are having the NT(QM) Application talking to AS 400(QM) in this scenarion the XML data send by the NT to AS 400 Queue Manager
th AS 400 always gets the Junk value I think its not able to convert the Ascii to Ebcedic value now we have written the XML in the AS 400 side for the Conversion it works fine

Is there any way to Do the Data Coversion in QueueManager Level with out programming

If So please let me know what are the Detailed Steps I need to Follow
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Tue Jun 04, 2002 8:52 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

It is not a good idea to do Data Conversion at queue manager level. For string data, queue manager can do data conversion for you. For doing this, set MQMD.Format to MQFMT_STRING and in your application program use MQGMO_CONVERT while doing MQGET.
_________________
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
StefanSievert
PostPosted: Tue Jun 04, 2002 9:03 am    Post subject: Re: Data Conversion Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Shalini wrote:
Hi,

We are having the NT(QM) Application talking to AS 400(QM) in this scenarion the XML data send by the NT to AS 400 Queue Manager
th AS 400 always gets the Junk value I think its not able to convert the Ascii to Ebcedic value now we have written the XML in the AS 400 side for the Conversion it works fine

Is there any way to Do the Data Coversion in QueueManager Level with out programming

If So please let me know what are the Detailed Steps I need to Follow

Shalini,
the steps to follow are:
1/ in the sending application, set mqmd.Format to MQFMT_STRING
2/ in the receiving application, specify MQGMO_CONVERT with the other options you might already have on your MQGET

MQ will evaluate the CodedCharSetId in the message descriptor of the message eligible for an MQGET against
a/ the queue managers CCSID, if mqmd.CodedCharSetId is not explicitly set to some other value before your MQGET is issued or
b/ mqmd.CodedCharSetId as set by your receiving application

and will perform the character set conversion for you, assuming it has a proper conversion table to perform the conversion.
This approach only works, if your message payload (buffer excluding MQ headers) contains character data only. But as you are saying that you are sending XML, this is the case.

So, specifying the correct format on the MQPUT and instructing MQ to convert for you on the MQGET by specifying MQGMO_CONVERT is the only thing you have to 'program'.
Hope that helps,
Stefan
_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
Shalini
PostPosted: Wed Jun 05, 2002 5:16 am    Post subject: Data Conversion Reply with quote

Master

Joined: 30 Apr 2002
Posts: 224
Location: India

Hi,
I have tried the following steps Then also gives me Error

Given 1207 CCISD for NT QMGR & 897 CCISD for AS 400 QMGR

MQGMO_Convert also given

any suggestions I need to do further
Back to top
View user's profile Send private message Send e-mail
StefanSievert
PostPosted: Wed Jun 05, 2002 7:27 am    Post subject: Re: Data Conversion Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Shalini wrote:
Hi,
I have tried the following steps Then also gives me Error

Given 1207 CCISD for NT QMGR & 897 CCISD for AS 400 QMGR

MQGMO_Convert also given

any suggestions I need to do further

Can you please be a bit more specific, about which error you are seeing? It might be possible that conversion between 1207 and 897 is not supported, but the reason code and any AMQERR01.LOG entries would help to analyze.
Stefan
_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
an_ragu
PostPosted: Thu Jun 06, 2002 11:03 pm    Post subject: Try this.. Reply with quote

Newbie

Joined: 16 May 2002
Posts: 8

Hi..
I'm communicating Solaris and AS400 by the following settings. Pl try this and let me know..

format = MQC.MQFMT_STRING;
characterSet = 1208; // UTF-8 Format
encoding = MQC.MQENC_NATIVE;

and also in which format u r writing the message whether writeString or ..
It is better to use write using bytes[].

bfn
Guru
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Data 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.