Posted: Wed Apr 06, 2005 3:07 am Post subject: Converting between EBCDIC and ANSI on Windows
Novice
Joined: 07 Oct 2002 Posts: 15 Location: Sundsvall, Sweden
I have a COBOL application in Windows that internally works with EBCDIC. When posting a message to a local queue on a Windows QM the message is said to have character set 850 and Encoding 546.
When reading the message from a .NET application I get garbage back.
OK! I set the MQC.MQGMO_CONVERT property in my MQGetMessageOptions object but get an INVALID FORMAT error.
We have no problem sending and reading message between z/OS and Windows.
INVALID_FORMAT returned from MQGET with CONVERT means that you are trying to convert a msg with a blank Format field in the MQMD.
Make sure that you set the Format field in the MQMD of the msg when you create it.
I also have same problem. I'm sending from HP UX to mainframe. What value should I set for the Format and encoding in the message when I try to send to mainframe. Any sample code would be great. thanks
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