Posted: Mon Feb 23, 2004 6:32 am Post subject: Handling NULLS.
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.
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