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 » Handling NULLS.

Post new topic  Reply to topic
 Handling NULLS. « View previous topic :: View next topic » 
Author Message
Scooter
PostPosted: Mon Feb 23, 2004 6:32 am    Post subject: Handling NULLS. Reply with quote

Apprentice

Joined: 01 May 2003
Posts: 35
Location: Dallas, Tx

Ok, this is most likely a stupid question but I'm still learning MQ. We have a message from a mainframe IMS program that is picked up by a VB.Net application to be processed. If the message contains LOW-VALUES (Nulls) anywhere in the message it gives VB problems. VB things it is the end of the string. The only way we have been able to correct this is to have the mainframe program initialize the returning data to spaces to remove the Nulls. This in itself is a issue because the programs we are calling have been in place for years and to modify all the programs would be time consuming. Is there another way to get MQ on the mainframe or on PC the output queue is located to convert or replace Nulls with spaces. I have tried several VB commands like replace(GetMsg.ReadString,""," ") while the message is retrieved but the Nulls appear to be stored differently in the MQ message the replace command doesn't replace the nulls.

Thanks for your time.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Feb 23, 2004 7:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Don't use the ReadString method.

Use 'Read' or 'ReadByte' instead.
_________________
I am *not* the model of the modern major general.
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 » Handling NULLS.
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.