Author |
Message
|
rdx |
Posted: Fri Dec 09, 2005 8:46 am Post subject: EBCDIC to ASCII |
|
|
Novice
Joined: 21 Dec 2004 Posts: 21
|
Hello Gurus,
How do I get CCSID and Encoding of the local system. The problem that I am facing is that I have an input EBCDIC blob format which needs to be added a few characters and converted to ASCII blob. Even when I change the CCSID to 1208 I do not get it as ascii. Can anybody help me.
Thanks in advance. |
|
Back to top |
|
 |
EddieA |
Posted: Fri Dec 09, 2005 9:45 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
How do I get CCSID and Encoding of the local system |
MQCCSI_Q_MGR and MQENC_NATIVE.
Quote: |
Even when I change the CCSID to 1208 I do not get it as ascii |
That's because it's a BLOB. A BLOB is just a series of bits. The Broker does nothing with them.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
EKhalil |
Posted: Tue Jul 22, 2008 6:25 am Post subject: How to get qmgrs encoding ??? |
|
|
Voyager
Joined: 29 Apr 2003 Posts: 99 Location: Boston, MA
|
When one displays qmgr via mqsc, CCSID is one of the attributes returned. Is there a WMQ command that would return qmgr's encoding ??? (What is the fastest way of obtaining this value ???) |
|
Back to top |
|
 |
zpat |
Posted: Tue Jul 22, 2008 7:18 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You don't convert BLOBs.
If it is an EBCDIC string, with MQMD format MQSTR then it will be converted using MQGET with MQGMO_CONVERT (or the MQINPUT node equivalent) or just let the broker convert it automatically to Unicode.
MQ applications (and this includes broker msg flows) should not care which codepage the message arrives in. Always remember to loose-couple messaging applications. |
|
Back to top |
|
 |
EKhalil |
Posted: Tue Jul 22, 2008 7:29 am Post subject: Qmgr's encoding |
|
|
Voyager
Joined: 29 Apr 2003 Posts: 99 Location: Boston, MA
|
But if you are trying to issue PCF commands then encoding is important right ??? If there is a mismatch then you end up with an error indicating to provide correct encoding in MQMD. I know that I can set it to native encoding but was wondering if I can obtain this value via some kind of a lookup trick - if there is any ??? |
|
Back to top |
|
 |
|