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 » WebSphere Message Broker (ACE) Support » Regarding CCSID

Post new topic  Reply to topic
 Regarding CCSID « View previous topic :: View next topic » 
Author Message
rajasri
PostPosted: Thu Jun 22, 2006 10:05 pm    Post subject: Regarding CCSID Reply with quote

Centurion

Joined: 11 Jun 2006
Posts: 114

Hi all, I am very much new to the concepts related to CCSID. I have a problem with my application. We have developed an application which is working fine in the windows system. But when the same is deployed in Solaris , the message format is some thing different.
some part of my code in a copmpute node is

SET OutputRoot.MQMD.Encoding = MQENC_NATIVE;
SET OutputRoot.MQMD.CodedCharSetId = MQCCSI_INHERIT;

and in other node i hv

Set OutputRoot.XML.CanonicalHeader = InputRoot.MQRFH2.usr.CanonicalHeader;

SET Environment.temp =ASBITSTREAM(OutputRoot.XML CCSID InputRoot.MQMD.CodedCharSetId);--IAM GETING ERROR AT THIS POINT TELLING CONVERSION ERROR.

SET Environment.temp=CAST(Environment.temp AS CHARACTER CCSID InputRoot.MQMD.CodedCharSetId);


Instead of InputRoot.MQMD.CodedCharSetId i also used MQCCSI_Q_MGR which i thought will work. But dint. I want to do this so that my application will run in any king of Oeprating System. (I guess this is how every one does!!!) And by the way what does MQCCSI_INHERIT means. This should also work since in documentation i see that Local queuemanager's ccsid will be used. But al in vain. It dint work cam any one help plzz
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Sun Jun 25, 2006 8:25 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Just check the following.
From the manual:
MQCCSI_INHERIT cannot be used if the value of the PutApplType field in MQMD is MQAT_BROKER

Again, from the manual:
MQCCSI_INHERIT
Character data in the message is in the same character set as this structure; this is the queue-manager's character set. (For MQMD only, MQCCSI_INHERIT has the same meaning as MQCCSI_Q_MGR).
The queue manager changes this value in the MQMD that is sent with the message to the actual character-set identifier of MQMD. Provided no error occurs, the value MQCCSI_INHERIT is not returned by the MQGET call.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
AkankshA
PostPosted: Sun Jun 25, 2006 10:30 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

try if it works

Change the following as given below

SET OutputRoot.MQMD.Encoding = 213;
SET OutputRoot.MQMD.CodedCharSetId = 819;

this shall wrk on solaris but i am not sure if it would work for windows too....
Back to top
View user's profile Send private message Visit poster's website
rajasri
PostPosted: Sun Jun 25, 2006 10:34 pm    Post subject: ccsid Reply with quote

Centurion

Joined: 11 Jun 2006
Posts: 114

Hi Akanksha, What if i dont want to confine my application to only solaris or unix or so. I want to make my application portable, i.e i want to make it platform independent so that it works in any OS
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Sun Jun 25, 2006 11:02 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

On the Input Node's Advanced Tab there is an option to enable Convert.
This should help.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Regarding CCSID
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.