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 IndexIBM MQ Java / JMSCCSID 1154 and MQGET with Convert

Post new topicReply to topic
CCSID 1154 and MQGET with Convert View previous topic :: View next topic
Author Message
RogerLacroix
PostPosted: Fri Feb 22, 2019 2:04 pm Post subject: CCSID 1154 and MQGET with Convert Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3120
Location: London, ON Canada

All,

Is it possible to perform a MQGET with Convert when the message (and queue manager) has a CCSID of 1154 (Russian)?

I did a bunch of tests in Java with various releases of MQ JAR files with different JVMS (IBM and Oracle). No matter what I tried, I always got reason code of 2111 (MQRC_SOURCE_CCSID_ERROR) or an exception of java.io.UnsupportedEncodingException. I am using the international versions of the JVM with extra language and locale supports.

If I do:
Code:
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.options = CMQC.MQGMO_BROWSE_NEXT + CMQC.MQGMO_CONVERT + CMQC.MQGMO_FAIL_IF_QUIESCING;
MQMessage getMsg = new MQMessage();
inQ.get(getMsg, gmo);

It throws an exception with reason code of 2111.

If I do:
Code:
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.options = CMQC.MQGMO_BROWSE_NEXT + CMQC.MQGMO_FAIL_IF_QUIESCING;
MQMessage getMsg = new MQMessage();
inQ.get(getMsg, gmo);
String msg = getMsg.readStringOfByteLength(len);

The readStringOfByteLength() method throws an IOException of java.io.UnsupportedEncodingException

I even did some tests with C code performing MQGET with Convert and it got reason code of 2111 (MQRC_SOURCE_CCSID_ERROR).

So, is it possible to do an MQGET with Convert when the message has a CCSID of 1154?

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
hughson
PostPosted: Fri Feb 22, 2019 2:21 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1146
Location: Bay of Plenty, New Zealand

1154 is an EBCDIC code page. What platform are you doing this on?

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
RogerLacroix
PostPosted: Fri Feb 22, 2019 2:50 pm Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3120
Location: London, ON Canada

Yes that is true. I ran my Java and C tests from Windows PC. The person sent me a screen-shot of an ISPF MQ browse panel displaying the message after doing an MQGET with Convert and it looks like a normal XML message.

I'm just trying to figure out how to do the same thing from a remote client application.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
hughson
PostPosted: Fri Feb 22, 2019 2:57 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1146
Location: Bay of Plenty, New Zealand

So the queue manager you are connecting to that has a CCSID of 1154 is on z/OS and you are connecting with a client on Windows to do a get with convert from 1154 into 850 and getting the 2111 error? Am I understanding correctly?

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
RogerLacroix
PostPosted: Fri Feb 22, 2019 3:01 pm Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3120
Location: London, ON Canada

Exactly.

I thought the client-side should also be able to do the MQGET with Convert if the ISPF MQ browse panel can do it.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
hughson
PostPosted: Fri Feb 22, 2019 5:19 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1146
Location: Bay of Plenty, New Zealand

Looking in IBM Knowledge Center on page z/OS conversion support I can see that CCSID 1154 converts to and from the following list of CCSIDs:-

808, 849, 858-859, 867, 872, 923-924, 1140-1149, 1153, 1155-1157, 1160-1162, 1200, 1208, 5347, 5348, 13488, 17584

850 is not in that list. Suggest you try one of the ones in the above list for your client instead of 850? For example 1200 and 1208 are there which are often used in Java applications I think?

Alternatively, code page 858 (which is in the list) is almost identical to 850. According to wikipedia:-

Wikipedia wrote:
Code page 858 was created from code page 850 in 1998 by changing code point 213 (D5hex) from dotless i to the euro sign.


Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSCCSID 1154 and MQGET with Convert
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.