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 » CCSID Conversion at Message broker level

Post new topic  Reply to topic
 CCSID Conversion at Message broker level « View previous topic :: View next topic » 
Author Message
jejo
PostPosted: Sun Jan 30, 2011 10:16 pm    Post subject: CCSID Conversion at Message broker level Reply with quote

Newbie

Joined: 30 Jan 2011
Posts: 9

Folks,
I'm new to MQ.. I'm receiving a message from a 3rd party and putting it to the MQ Queue and I'm not setting any ccsid for it. My new requirement says that ccsid conversion happens at message broker level and I should refer it through the code... Following are the parameters given

SET OutRootPtr.Properties.CodedCharSetId = 500;
SET OutRootPtr.Properties.Encoding = 273;
SET OutRootPtr.MQMD.CodedCharSetId = 500;
SET OutRootPtr.MQMD.Encoding = 273;

.... waiting for the help guys....
Back to top
View user's profile Send private message
fatherjack
PostPosted: Mon Jan 31, 2011 1:39 am    Post subject: Re: CCSID Conversion at Message broker level Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

jejo wrote:
I'm not setting any ccsid for it.


The message MUST have the correct CCSID specified, otherwise how will anything - broker, MQ or anything else - know how to convert it correctly.
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jan 31, 2011 2:04 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

But you are setting CCSID to 500, which, if my memory is correct, is the general EBCDIC code page.

I assume the input message is not over MQ, is that right?

What codepage do you want the output message to be in?
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Jan 31, 2011 1:33 pm    Post subject: Re: CCSID Conversion at Message broker level Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

jejo wrote:
I'm receiving a message from a 3rd party and putting it to the MQ Queue and I'm not setting any ccsid for it.

MQPUT requires an MQMD parameter, which includes a ccsid. Something is setting a ccsid for it.

jejo wrote:
Code:
SET OutRootPtr ...

OutRootPtr?

jejo wrote:
.... waiting for the help guys....

Help with what? Describe the problem. Ask a question. That will help.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jan 31, 2011 10:29 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Code:

SET OutRootPtr.Properties.CodedCharSetId = 500;
SET OutRootPtr.Properties.Encoding = 273;
SET OutRootPtr.MQMD.CodedCharSetId = 500;
SET OutRootPtr.MQMD.Encoding = 273;


Some sites where I've worked seem to have a predeliction to reference everything.
So there may well have been the following earlier in the ESQL
Code:

 DECLARE OutRootPtr REFERENCE to OutputRoot;

Quite why this is would be used for this example is a mystery though.

You could use a reference to OutputRoot if you were then going to create a lastchild plus a whole load of other stuff. But here and when you are setting properties in common parts of the message tree is a ??????? moment.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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