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 » WebSphere Message Broker (ACE) Support » NULL STRING WHEN SELECTING FIELDS INTO XML

Post new topic  Reply to topic
 NULL STRING WHEN SELECTING FIELDS INTO XML « View previous topic :: View next topic » 
Author Message
MikeTamari
PostPosted: Sun Apr 06, 2003 5:36 am    Post subject: NULL STRING WHEN SELECTING FIELDS INTO XML Reply with quote

Apprentice

Joined: 04 Feb 2002
Posts: 26

Whenever I select rows into the OutputRoot XML and one of the fields has a null value, it is transferred to the OutputRoot XML as the string 'NULL', this is bad news for me since it eventually goes into another DB.
Replacing the string is not good enough since technically someone can actually put the string 'NULL' in the table as a legitimate string.
I tried selecting with nullif, it works, but the select becomes extremely slow, (there are about 20 fields selected).

Any other ideas, I am starting to run out of them,

thanks.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sun Apr 06, 2003 9:42 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you put the results of your select into the environment, they will stay as NULL values, rather than 'NULL' character strings.

So instead of saying
set OutputRoot.XML.myDoc.myResult[] = ...
you would say for instance
set Environment.Variables.myResult[] = ...
Back to top
View user's profile Send private message
MikeTamari
PostPosted: Sun Apr 06, 2003 10:39 pm    Post subject: Reply with quote

Apprentice

Joined: 04 Feb 2002
Posts: 26

Thanks, if I use the Environment variables all the way including the DB node it works just great.
Does using the Environment variables have any problems/limitations and or advantages ?
We have always used the OutputRoot.XML to flow between nodes.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » NULL STRING WHEN SELECTING FIELDS INTO XML
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.