Author |
Message
|
sagwa99 |
Posted: Thu Jun 27, 2002 7:38 pm Post subject: Data conversion using compute node |
|
|
Novice
Joined: 14 Jun 2002 Posts: 15
|
To convert the incoming message from EBCDIC(not packed data) to ASCII.
Can the conversion being done using compute to set encoding & CCSID without creating MRM message set?
Compute Node (Copy entire message)
Set OutputRoot.MQMD.Encoding = 273;
Set OutputRoot.MQMD.CodedCharSetId = 437;
Thanks. |
|
Back to top |
|
 |
TorpedoSTu |
Posted: Fri Jun 28, 2002 2:19 am Post subject: |
|
|
Acolyte
Joined: 14 Nov 2001 Posts: 73
|
Hiya,
You could set CONVERT(YES) on your inbound channel from your EBCDIC host. The data should be in the local CCSID when it gets to WMQI.
Regs
Stuart |
|
Back to top |
|
 |
CodeCraft |
Posted: Fri Jun 28, 2002 5:42 am Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
It doesn't even need channel conversion set. Assuming the message is transmitted in a "known" format, eg: MQSTR, when WMQI receives the message it checks the CCSID and converts internally to UCS2 (Unicode).
What happens then is, if you change the CCSID in the properties folder/tree, when the message is output it is converted from UCS2 to whatever the specified CCSID is.
There are various reasons you might have issues with this. If this doesn't help, be more specific about the data format and requirements. |
|
Back to top |
|
 |
sagwa99 |
Posted: Sat Jun 29, 2002 8:35 pm Post subject: |
|
|
Novice
Joined: 14 Jun 2002 Posts: 15
|
Stuart,
Thanks for your input. It works.
CodeCraft,
Would you further elaborate on how to change the CCSID in the properties folder/tree or let me know where can I get more information? I would like to give it a try.
Thanks for your recommendation. |
|
Back to top |
|
 |
CodeCraft |
Posted: Sun Jun 30, 2002 4:13 am Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
Set OutputRoot.Properties.CodedCharSetId = <whatever>;
The conversion is applied when the message is output (MQOutput node). |
|
Back to top |
|
 |
|