Author |
Message
|
juleroy |
Posted: Fri Jan 28, 2005 11:24 am Post subject: CCSID of usr header |
|
|
Newbie
Joined: 28 Jan 2005 Posts: 2
|
Hi,
I need to set the CCSID of the header in usr that I added to my message. In MQ documentation, it seems that I need to set the nameValueCCSID of the MQRFH2 header. My question is: how can I set up this field? I didn't find any method for it in the documentation.
Thanks,
Juliana. |
|
Back to top |
|
 |
vennela |
Posted: Fri Jan 28, 2005 12:02 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You can set it in the JNDI definitions
Example:
///RECEIVER.DATA.QUEUE?CCSID=37&targetClient=1 |
|
Back to top |
|
 |
EddieA |
Posted: Fri Jan 28, 2005 3:20 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
///RECEIVER.DATA.QUEUE?CCSID=37&targetClient=1 |
Doesn't that set the CCSID for the message. The question was:
Quote: |
I need to set the nameValueCCSID |
Which can only be:
Quote: |
NameValueCCSID must have one of the following values:
CCSID Meaning
1200 UCS-2 open-ended
13488 UCS-2 2.0 subset
17584 UCS-2 2.1 subset (includes the Euro symbol)
1208 UTF-8 |
But I don't how you set it. I've only ever seen 1208 being set, no matter what the platform.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 28, 2005 3:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
EddieA wrote: |
Quote: |
///RECEIVER.DATA.QUEUE?CCSID=37&targetClient=1 |
Doesn't that set the CCSID for the message. The question was:
Quote: |
I need to set the nameValueCCSID |
Which can only be:
Quote: |
NameValueCCSID must have one of the following values:
CCSID Meaning
1200 UCS-2 open-ended
13488 UCS-2 2.0 subset
17584 UCS-2 2.1 subset (includes the Euro symbol)
1208 UTF-8 |
But I don't how you set it. I've only ever seen 1208 being set, no matter what the platform.
Cheers, |
Ok let's look at it.
According to the book the url/jndi definition of the queue is setting a CCSID. This means that all messages will be put on the queue in this CCSID. You create your message with CCSID of your platform. The qmgr will transform your message (MQFMT_STR) to the CCSID specified on the queue before putting it to the queue. At the same time it will change the CCSID values on the message. This would apply to the payload.
Now for the header you need to use some of the io classes to put the value pairs in the right CCSID. As the RFH2 header valuepair information was mainly intended for some java processing having the information in any non java readable/interpretable format would go against the purpose (EBCDIC).
Enjoy  |
|
Back to top |
|
 |
juleroy |
Posted: Mon Jan 31, 2005 3:19 am Post subject: |
|
|
Newbie
Joined: 28 Jan 2005 Posts: 2
|
How can I use these io classes?
Do you have some example or documentation?
Thanks. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jan 31, 2005 12:58 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Look at
java.nio.* in java 1.4 |
|
Back to top |
|
 |
teal |
Posted: Thu Feb 03, 2005 6:38 pm Post subject: |
|
|
 Acolyte
Joined: 15 Dec 2004 Posts: 66
|
so FJB_SAPER,
are you saying that if I need a bytesMessage(not string so no autoConversion) to come across from an ebcdicAS400 to a windows box and the only thing I really care to read is the RFH2 usr folder (the payload can stay in ebcdic)
I need to set the NameValueCCSID of the MQMD to 1208 and the NameValueCCSID of the RFH2 header back to 1208? what about the other four fields?
MQMD.format = MQRFH2
RFH2.format - MQFMT_NONE
MQMD.CCSID =37
RFH2.StructID = MQRFH_STRUC_ID "RFH " ?
MQMD.ENCODING = 111
RFH2.CCSID = 437
RFH2.ENCODING = 546
???
I only need to be able to read the MQMD and RFH2, I dont care if the rest stays ebcdic. |
|
Back to top |
|
 |
|