Author |
Message
|
jejo |
Posted: Sun Jan 30, 2011 10:16 pm Post subject: CCSID Conversion at Message broker level |
|
|
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 |
|
 |
fatherjack |
Posted: Mon Jan 31, 2011 1:39 am Post subject: Re: CCSID Conversion at Message broker level |
|
|
 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 |
|
 |
zpat |
Posted: Mon Jan 31, 2011 2:04 am Post subject: |
|
|
 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 |
|
 |
rekarm01 |
Posted: Mon Jan 31, 2011 1:33 pm Post subject: Re: CCSID Conversion at Message broker level |
|
|
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.
OutRootPtr?
jejo wrote: |
.... waiting for the help guys.... |
Help with what? Describe the problem. Ask a question. That will help. |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Jan 31, 2011 10:29 pm Post subject: |
|
|
 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 |
|
 |
|