Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQ Series - Flat file

Status
Not open for further replies.

JohnLennon

Technical User
Jul 6, 2001
9
0
0
GB
Hi

I currently have MQ series set-up between an RS6000, AS400 and NT box.
Messages published in XML are passed from the RS6000 to the NT box, where they are converted to flat files and directed towards the AS400.

However, when the messages arrive on the AS400, they are illegible. This problem seemd related to the AS400, running v5.1 of MQ. I know that the messages published from the NT box are legible until they hit the AS.

Any ideas?

Regards
 
A couple things you could check.
1. Check the logs on both machines and see if you are getting data conversion errors. Sometimes with NT in the picture you get this. The way to fix it is to edit the qm.ini file to make sure that it can handle the specific conversions that are taking place.
Check the application programming reference under data conversion, also check the programming guide.

2. See how you are transfering the file? ASCII text, wrapped in a data object, straight XML, make sure that on the next machine in the cycle(RS ->NT -> AS) that you are expecting it in the format you are sending. Also verify that the flat file you are creating is getting created without additional extentions etc.
This sometimes causes problems.

Hope those help
K.
 
You are probably experiencing a problem with codepage conversion. While AIX and WinNT use the ASCII code set, AS/400s use a completely different one called EBCDIC. MQSeries can convert between the two but you have to tell it to.

You don't say which API and language you are using but regardless you normally need to tell MQ that you are sending character data. In the standard MQI specify MQSTRING as the Format field of the message descriptor.

Having done that, you need to tell MQ to actually do the conversion. Do this by specifying the CONVERT option when you do the MQGET (or equivalent). Alternatively, and generally speaking less desirably, specify CONVERT(YES) on the Sender channel.

Cheers,
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top