Author |
Message
|
steiner |
Posted: Wed Nov 08, 2006 2:49 am Post subject: How can I concert a Message in a other Code Page |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
I have messages in a queue with Special Characters (such as alt 144 = É)
and when these characters are transfered in a File , i cannot read their correct signification.
Our Ccsid is 1051 (for all Queue Manager) and when the messages are in the Queue thre are coding with a ccsid 850 (with IBM mo71).
So I'm trying some tests with the MA01 program Q. I want to test if i can transfert the messages in a file with a ccsid conversion, with the command:
for example on HP Unix:
./q -c:1089 -mEH020041 -iEH0.MRS.1.PLUS.MRS.03 > toto.txt
So but it seems not to work properly.
So can you help me for that problem.
Thanks bye. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 08, 2006 2:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Conversion relies on doing a GET with CONVERT set (recommended) or having CONVERT set on the channel (not recommended at all). It also relies on the MQMD describing the data as string.
So the question comes, do you believe all these criteria have been met in the example you've tried? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
steiner |
Posted: Fri Nov 10, 2006 1:03 am Post subject: |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
thanks for your answer,
yes all these criterias are OK (String...).
Do you have another idea for the command :
./q -c41b -mEH020041 -iEH0.MRS.1.PLUS.MRS.03 > toto.txt
Thanks. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 10, 2006 1:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
steiner wrote: |
./q -c41b -mEH020041 -iEH0.MRS.1.PLUS.MRS.03 > toto.txt
|
Well this time you've correctly specified the CCSID in hex not decimal, but there seems to be a ":" missing... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
steiner |
Posted: Fri Nov 10, 2006 5:48 am Post subject: |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
it's right in the Q documentation it is in Hex but it seems not working on our HP Unix.
when I run the command with -c819 I can read the same form of characters as they are in my queue. For example ||| (browse queue with mo71) but real there is ÉÉÉ in the queue.
Could anyone help me about that Q command (exactly syntax), and explain me how to make those conversions.
Perhaps there is a documentation that can explain this problem.
Thanks, bye |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 10, 2006 5:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
steiner wrote: |
Could anyone help me about that Q command (exactly syntax), and explain me how to make those conversions.
Perhaps there is a documentation that can explain this problem.
|
Erm, slightly obvious here but you do know the "q command" isn't an MQ command but the MA01 Support Pack? Which has command syntax documents included in the download?
I mention it only because I've been asked on a couple of occassion why "qload" isn't in the System Administration Manual... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 10, 2006 3:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
steiner wrote: |
Hello,
it's right in the Q documentation it is in Hex but it seems not working on our HP Unix.
when I run the command with -c819 I can read the same form of characters as they are in my queue. For example ||| (browse queue with mo71) but real there is ÉÉÉ in the queue.
Could anyone help me about that Q command (exactly syntax), and explain me how to make those conversions.
Perhaps there is a documentation that can explain this problem.
Thanks, bye |
I would not trust the browse with MO71 unless you see the message in Hex as well and the Hex char corresponds.
We had the case with a message in ccsid 1208 and some specific chars like trade mark bullet points etc... In MO71 they did not display correctly. In JMS (did a browse) they displayed just fine...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
steiner |
Posted: Mon Nov 13, 2006 7:33 am Post subject: |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
thanks for the answer.
Where can I find a free download of only hte Browse of JMS.
But it's for me only to see the right Characters, but when I need to use these Characters for my application, that one doesn't understand that specials characters because the amqsgetc doesn't work for special characters.
could you help me , thanks. |
|
Back to top |
|
 |
tleichen |
Posted: Mon Nov 13, 2006 7:48 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
steiner wrote: |
Hello,
But it's for me only to see the right Characters, but when I need to use these Characters for my application, that one doesn't understand that specials characters because the amqsgetc doesn't work for special characters.
could you help me , thanks. |
There's nothing wrong with amqsgetc, but with the ccsid of your display environment. That is what affects the displayed character set.  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
|