Author |
Message
|
rajasri |
Posted: Thu Jun 22, 2006 10:05 pm Post subject: Regarding CCSID |
|
|
 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 |
|
 |
shalabh1976 |
Posted: Sun Jun 25, 2006 8:25 pm Post subject: |
|
|
 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 |
|
 |
AkankshA |
Posted: Sun Jun 25, 2006 10:30 pm Post subject: |
|
|
 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 |
|
 |
rajasri |
Posted: Sun Jun 25, 2006 10:34 pm Post subject: ccsid |
|
|
 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 |
|
 |
shalabh1976 |
Posted: Sun Jun 25, 2006 11:02 pm Post subject: |
|
|
 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 |
|
 |
|