View previous topic :: View next topic |
Author |
Message |
gupta Beginner
Joined: 12 Feb 2005 Posts: 27 Topics: 15
|
Posted: Fri Feb 16, 2007 7:12 am Post subject: MQ character conversion |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri Feb 16, 2007 7:36 am Post subject: |
|
|
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 |
|
|
gupta Beginner
Joined: 12 Feb 2005 Posts: 27 Topics: 15
|
Posted: Fri Feb 16, 2007 9:08 am Post subject: |
|
|
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 |
|
|
gupta Beginner
Joined: 12 Feb 2005 Posts: 27 Topics: 15
|
Posted: Fri Feb 16, 2007 9:15 am Post subject: |
|
|
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 |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Fri Feb 16, 2007 9:28 am Post subject: |
|
|
'receiving the data properly' - with or without the xml tags? _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
gupta Beginner
Joined: 12 Feb 2005 Posts: 27 Topics: 15
|
Posted: Fri Feb 16, 2007 9:50 am Post subject: |
|
|
Dick Brenholtz
I am receiving the data properly when it comes in XML tag
Gupta |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Fri Feb 16, 2007 9:58 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
gupta Beginner
Joined: 12 Feb 2005 Posts: 27 Topics: 15
|
Posted: Mon Feb 19, 2007 4:46 am Post subject: |
|
|
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 |
|
|
gupta Beginner
Joined: 12 Feb 2005 Posts: 27 Topics: 15
|
Posted: Tue Feb 20, 2007 6:17 am Post subject: |
|
|
Kolusu,
The fix worked. As you have said, the CCSID was sent wrongly.
Thanks a lot.
Gupta |
|
Back to top |
|
|
gupta Beginner
Joined: 12 Feb 2005 Posts: 27 Topics: 15
|
Posted: Thu Feb 22, 2007 10:38 am Post subject: |
|
|
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 |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Sun Feb 25, 2007 9:13 pm Post subject: |
|
|
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 |
|
|
|
|