Author |
Message
|
belal |
Posted: Thu Dec 14, 2006 12:50 am Post subject: I want change the ccsid using java program pls help me |
|
|
Novice
Joined: 14 Dec 2006 Posts: 15
|
Hi all, how can I change the ccsid using java code
thanks for adv. [/code]
Last edited by belal on Thu Dec 14, 2006 1:54 am; edited 1 time in total |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 14, 2006 1:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Why would you want to? CCSID should always match that of the message, i.e. the local one with convert done on get.
What are your requirements? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
belal |
Posted: Thu Dec 14, 2006 1:52 am Post subject: |
|
|
Novice
Joined: 14 Dec 2006 Posts: 15
|
thanx for your reply
i am making a common program and iwant him to send understandable message to queues in different machines so i'll pass the ccsis as parameter
thanx |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 14, 2006 2:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
belal wrote: |
thanx for your reply
i am making a common program and iwant him to send understandable message to queues in different machines so i'll pass the ccsis as parameter
thanx |
NO - do not do this!!!!
The accepted, standard and supported method for doing this in an MQ environment is to set the CCSID to match the message and for the CCSID to be changed at the receiving end by a get with convert, which automatically resolves the difference. Don't reinvent the wheel by sending different formatted messages or adding pararmeters where one already exists. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
belal |
Posted: Thu Dec 14, 2006 2:16 am Post subject: thank you .BUT |
|
|
Novice
Joined: 14 Dec 2006 Posts: 15
|
thanx again
put can you tell me where I can used the "conver" and how cause I am new with mqseries |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 14, 2006 2:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
It's an option specified in the application when you get a message from the queue. You'll find full details at:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp
The Intercommunication manual describes the process, the Using Java manual will explain the method options and the Application Programming Guide (& Reference) will give an overview and details for achiving this in other programming languages.
Happy Reading!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|