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 » EBCDIC to ASCII Coversion

Post new topic  Reply to topic
 EBCDIC to ASCII Coversion « View previous topic :: View next topic » 
Author Message
mrisen
PostPosted: Tue Feb 04, 2003 12:11 pm    Post subject: EBCDIC to ASCII Coversion Reply with quote

Newbie

Joined: 04 Feb 2003
Posts: 1

I am passing data from a mainframe to an NT MQ Server. I need to covert the EBCDIC to ASCII. I am using MQAX200 and thought I was doing it correctly, but I'm not getting back ASCII. Am I doing something wrong?

mqSession = New MQAX200.MQSession()

mqManager = mqSession.AccessQueueManager(sQManager)

If mqManager.IsOpen Then
mqQueue = mqManager.AccessQueue( sQQueue,MQOO_INPUT_AS_Q_DEF)
mqMessage = New MQAX200.MQMessage()
mqMessage.CharacterSet = 437
mqQueue.Get(mqMessage, mqMessageOpt)
mqQueue.Close()
End If

mqManager.Disconnect()

MQGet = mqMessage
Back to top
View user's profile Send private message
nimconsult
PostPosted: Tue Feb 04, 2003 11:29 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

mqMessageOpt.options = MQC.MQGMO_CONVERT;
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rajmq
PostPosted: Wed Feb 05, 2003 12:20 am    Post subject: Reply with quote

Partisan

Joined: 29 Sep 2002
Posts: 331
Location: USA

Hi mrisen

Have u set the CONVERSION property of the channel to YES in the mainframe Application.

regds
raj
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Feb 05, 2003 12:39 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Try to avoid conversion in channels - it's really the old-fashioned way and can involve multiple conversions.

Always code MQGET with CONVERT - it will make your applications more portable between platforms and allow them to receive data from different platforms without changing the code, or messing about with channel conversions (yuck!).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » EBCDIC to ASCII Coversion
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.