|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT |
« View previous topic :: View next topic » |
Author |
Message
|
MizukiYamato |
Posted: Sun Apr 11, 2010 6:22 pm Post subject: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT |
|
|
 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 |
|
 |
Vitor |
Posted: Sun Apr 11, 2010 6:34 pm Post subject: Re: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT |
|
|
 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 |
|
 |
MizukiYamato |
Posted: Sun Apr 11, 2010 6:44 pm Post subject: Re2: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT |
|
|
 Apprentice
Joined: 16 Dec 2009 Posts: 45 Location: Japan
|
Hi Vitor,
It goes well.
Thanks very much. |
|
Back to top |
|
 |
rekarm01 |
Posted: Mon Apr 12, 2010 10:03 am Post subject: Re: How can I evaluate NULL VALUE ON REFERENCE TYPE ELEMENT |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
Also check the documentation for the LASTMOVE() function. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|