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 » How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT

Post new topic  Reply to topic
 How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT « View previous topic :: View next topic » 
Author Message
MizukiYamato
PostPosted: Sun Apr 11, 2010 6:22 pm    Post subject: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT Reply with quote

Apprentice

Joined: 16 Dec 2009
Posts: 45
Location: Japan

Hi,

I'm troubling on evaluation NULL VALUE ON REFERENCE TYPE variable.

I'm trying to search NULL value on message tree, and then set other value.
I want to do it with REFERENCE TYPE variable, so I tryed below code.

-------------------------------------------------
DECLARE ref REFERENCE TO InputRoot.XMLNSC.ns:Input.test;
IF(ref = NULL) THEN
SET ref = 1;
END IF;
-------------------------------------------------

but,
> SET ref = 1;
is not executed...

Please help me.
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun Apr 11, 2010 6:34 pm    Post subject: Re: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

MizukiYamato wrote:
Please help me.


Check the documentation on comparision operators. You'll find that NULL requires IS rather than =
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
MizukiYamato
PostPosted: Sun Apr 11, 2010 6:44 pm    Post subject: Re2: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT Reply with quote

Apprentice

Joined: 16 Dec 2009
Posts: 45
Location: Japan

Hi Vitor,
It goes well.

Thanks very much.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Apr 12, 2010 10:03 am    Post subject: Re: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Also check the documentation for the LASTMOVE() function.
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 » WebSphere Message Broker (ACE) Support » How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT
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.