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 Index » Mainframe, CICS, TXSeries » Message encoding issue in Mainframe (from Java /Windows)

Post new topic  Reply to topic
 Message encoding issue in Mainframe (from Java /Windows) « View previous topic :: View next topic » 
Author Message
john123
PostPosted: Fri Jul 07, 2006 6:35 am    Post subject: Message encoding issue in Mainframe (from Java /Windows) Reply with quote

Newbie

Joined: 07 Jul 2006
Posts: 3

We are facing difficulties in reading messages in Mainframe. The messages are available in the mainframe queue but their format is listed in junk characters. The text messages are dropped in directly from Java/JMS application into the mainframe Queue. Please find more details below:

Server Environment: Java client is used. The WebSphere MQ 5.3 is installed in mainframe machine.

Issue: We are storing the message into mainframe Queue via JAVA. Java standalone program is able store the data and retrieve the data from Mainframe MQ. Also Java program is able to read the data from the queue which was put by mainframe. But the issue is that Mainframe could not recognize the format for the text message which was put by Java. The text message when listed in mainframe looks like JUNK value.

How can we put the message in mainframe from java so that mainframe can understand or we missing any configuration? Any help on this is highly appreciated.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Fri Jul 07, 2006 9:20 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Sounds like the messages are in ASCII and as I recall the ISPF message browsing utility doesn't do a convert on the get by default.

What are you using to browse the messages on the mainframe to determine that they are 'junk'?

The fact that you can put them and read them from Java means things are fine. If you are only concerned with how they look on the mainframe then convert on the MQGET in the mainframe program
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jul 07, 2006 11:12 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Also you are talking about text messages. Make sure that the format is set to 'MQSTR '. You did not tell us whether you had done this.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
john123
PostPosted: Mon Jul 10, 2006 5:09 am    Post subject: Message encoding issue in Mainframe (from Java /Windows) Reply with quote

Newbie

Joined: 07 Jul 2006
Posts: 3

Thanks for the reply. Where we need to set the MQSTR. Because i am creating the text message inside JAVA program. Here i am using javax.jms package.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jul 10, 2006 5:23 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If the message's MQMD.Format = MQSTR and the CCSID is correctly describing the message data, then an application (including any queue browser) which does a MQGET with MQGMO_CONVERT will see the message in a suitable format.

In JMS use TextMessage not BytesMessage for correct string handling.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 10, 2006 12:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

As well are you suppressing the MQRFH header when posting from Java to the Mainframe ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
James_O_K
PostPosted: Thu Jul 13, 2006 7:04 am    Post subject: Re: Message encoding issue in Mainframe (from Java /Windows) Reply with quote

Apprentice

Joined: 09 Mar 2006
Posts: 39
Location: UK

john123 wrote:
We are facing difficulties in reading messages in Mainframe. The messages are available in the mainframe queue but their format is listed in junk characters. The text messages are dropped in directly from Java/JMS application into the mainframe Queue. Please find more details below:

Server Environment: Java client is used. The WebSphere MQ 5.3 is installed in mainframe machine.

Issue: We are storing the message into mainframe Queue via JAVA. Java standalone program is able store the data and retrieve the data from Mainframe MQ. Also Java program is able to read the data from the queue which was put by mainframe. But the issue is that Mainframe could not recognize the format for the text message which was put by Java. The text message when listed in mainframe looks like JUNK value.

How can we put the message in mainframe from java so that mainframe can understand or we missing any configuration? Any help on this is highly appreciated.


I had a similar problem to this a while back. It was down to CCSID not being set:
http://www.mqseries.net/phpBB2/viewtopic.php?t=27920&highlight=
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Message encoding issue in Mainframe (from Java /Windows)
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.