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 » IBM MQ Java / JMS » CCSID of usr header

Post new topic  Reply to topic
 CCSID of usr header « View previous topic :: View next topic » 
Author Message
juleroy
PostPosted: Fri Jan 28, 2005 11:24 am    Post subject: CCSID of usr header Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Fri Jan 28, 2005 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
EddieA
PostPosted: Fri Jan 28, 2005 3:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 28, 2005 3:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
juleroy
PostPosted: Mon Jan 31, 2005 3:19 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 31, 2005 12:58 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Look at
java.nio.* in java 1.4
Back to top
View user's profile Send private message Send e-mail
teal
PostPosted: Thu Feb 03, 2005 6:38 pm    Post subject: Reply with quote

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
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 » IBM MQ Java / JMS » CCSID of usr header
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.