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 » IBM MQ API Support » Converting between EBCDIC and ANSI on Windows

Post new topic  Reply to topic
 Converting between EBCDIC and ANSI on Windows « View previous topic :: View next topic » 
Author Message
Thomasb
PostPosted: Wed Apr 06, 2005 3:07 am    Post subject: Converting between EBCDIC and ANSI on Windows Reply with quote

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.

Any hints?
Back to top
View user's profile Send private message Visit poster's website
Nigelg
PostPosted: Wed Apr 06, 2005 3:49 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

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.
Back to top
View user's profile Send private message
moi3
PostPosted: Wed Apr 06, 2005 8:15 pm    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

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
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Thu Apr 07, 2005 3:37 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Set the format to 'MQSTR ' if your message is nothing but text. You can always use amqsbcg to browse your message and see what is currently set.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Converting between EBCDIC and ANSI on 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.