Posted: Tue Feb 04, 2003 12:11 pm Post subject: EBCDIC to ASCII Coversion
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?
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
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!).
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