MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MQ character conversion

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
gupta
Beginner


Joined: 12 Feb 2005
Posts: 27
Topics: 15

PostPosted: Fri Feb 16, 2007 7:12 am    Post subject: MQ character conversion Reply with quote

Hi All,

We are facing the follwing problems in MQ read process.

A set of message will be written by a JAVA component to MQ. The written data will be read and validated for further processing. The message written in MQ is string format of fixed width (FB format).

The program is able to read and validate the message for normal data.
When the message contains special character, the data that is received is an invalid one.

Example :
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Feb 16, 2007 7:36 am    Post subject: Reply with quote

gupta,


what is the codepage you are using ? The conversion of data to or from either UTF-8 or UTF-16 and EBCDIC and ASCII codepages. The CCSID for UTF8 is 1208

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gupta
Beginner


Joined: 12 Feb 2005
Posts: 27
Topics: 15

PostPosted: Fri Feb 16, 2007 9:08 am    Post subject: Reply with quote

Kolusu,

I am new to this process. It will be helpful if you can explain to me what is CCSID.

Is this something related tp mainfrmae MQ settings or this a parameter which has to be set while reading the data from the MQ in the COBOL program.

If this related to setting can help me where i have to see it.

If this something which has to be set while sending the message. Please let me know where i have to set this.


Many thanks,
Gupta
Back to top
View user's profile Send private message
gupta
Beginner


Joined: 12 Feb 2005
Posts: 27
Topics: 15

PostPosted: Fri Feb 16, 2007 9:15 am    Post subject: Reply with quote

Kolusu,

One more thing when the data is put in some xml tag, we receive the data properly. Any thoughts on tht.

Thanks,
Gupta
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Feb 16, 2007 9:28 am    Post subject: Reply with quote

'receiving the data properly' - with or without the xml tags?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
gupta
Beginner


Joined: 12 Feb 2005
Posts: 27
Topics: 15

PostPosted: Fri Feb 16, 2007 9:50 am    Post subject: Reply with quote

Dick Brenholtz

I am receiving the data properly when it comes in XML tag

Gupta
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Feb 16, 2007 9:58 am    Post subject: Reply with quote

my original question was 'do you receive the tags within the data received from the queue?'

but a more important question now is:

is there more than one source
for the data
that is written to the queue
that you read?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Sat Feb 17, 2007 7:27 am    Post subject: Reply with quote

gupta,

Check this link

http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27005729

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gupta
Beginner


Joined: 12 Feb 2005
Posts: 27
Topics: 15

PostPosted: Mon Feb 19, 2007 4:46 am    Post subject: Reply with quote

Kolusu,

Thanks for the information. As of now i haven't tried it. I will let you know once i am done.

Thanks,
Gupta
Back to top
View user's profile Send private message
gupta
Beginner


Joined: 12 Feb 2005
Posts: 27
Topics: 15

PostPosted: Tue Feb 20, 2007 6:17 am    Post subject: Reply with quote

Kolusu,

The fix worked. As you have said, the CCSID was sent wrongly.

Thanks a lot.
Gupta
Back to top
View user's profile Send private message
gupta
Beginner


Joined: 12 Feb 2005
Posts: 27
Topics: 15

PostPosted: Thu Feb 22, 2007 10:38 am    Post subject: Reply with quote

Kolusu,

The issue is coming now again for SPECIAL char.

Initially, when the issue got solved we tried to send the data to mainframe MQ directly. But when we use JMS to send the data, the Mainfrmae is not able to identify the special character. It is multipling the special character.

Example:

JMS ---> Mainfrmae MQ ---> COBOL to read the data.

JMS is writing data in UTF-8 format and data displays correctly
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Feb 25, 2007 9:13 pm    Post subject: Reply with quote

Your best bet is the link that Kolusu has sent in the above post.

Alternatively, you might want to check if some sort of data conversion exit is working on the mainframe queue manager.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group