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 » Delete Field myfield vs SET myfield = NULL

Post new topic  Reply to topic
 Delete Field myfield vs SET myfield = NULL « View previous topic :: View next topic » 
Author Message
mrT
PostPosted: Tue Oct 23, 2007 4:48 am    Post subject: Delete Field myfield vs SET myfield = NULL Reply with quote

Newbie

Joined: 23 Oct 2007
Posts: 1
Location: Stockholm

Hi!

I found a major issue with the difference of deleting a field and setting it to NULL.

I'm building up an OutputRoot.MRM and in some conditions I need to delete parts of the OutputRoot.MRM structure. So I used the DELETE FIELD function. I propagate the flow, sends it through a RCD and then to output node.

Later in the flow I build up a new OutputRoot.MRM which I want to send through another RCD and then to output node. During my creation of the MRM the flow freezes completely. The message is stuck and no other can be processed. I have to delete the process to be able to use the flow again.

If I instead build up my second MRM in the Environment tree it all looks good there but when I copy it into OutputRoot.MRM DOMAIN 'MRM' the result is that my last tags replaces the MRM. Like this:
Properties
MQMD
tag9
tag10
tag11
tag12

If I step through my copying I can see that the OutputRoot.MRM is building up until it reaches tag9.

If I don't use DOMAIN 'MRM' the structure looks good in OutputRoot.MRM until it reaches the RCD, it then throws exception that my first tag is missing.


When I change the line in the first creation of OutputRoot.MRM to
DELETE FIELD myfield
to
SET myfield = NULL
the second creation of the OutputRoot.MRM works perfectly well.

So my question is: What is the difference of using DELETE function and setting a field to NULL??
Back to top
View user's profile Send private message Visit poster's website
Gaya3
PostPosted: Tue Oct 23, 2007 5:41 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

HI

After deleting the field did you re-create it for the future use, if not, it will throw an exception.

if you use null, i dont think its required to re-create the field again

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
JLRowe
PostPosted: Tue Oct 23, 2007 5:56 am    Post subject: Re: Delete Field myfield vs SET myfield = NULL Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

mrT wrote:
So my question is: What is the difference of using DELETE function and setting a field to NULL??


A field can still be present and have a NULL value, there is a difference between a field being not present (i.e. deleted) and being present but having a NULL value.

NULL means undefined/unknown.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Oct 23, 2007 6:02 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You have to be very careful when you build anything in the Environment, that you make sure that it's got the proper parser associated with it.
_________________
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 » WebSphere Message Broker (ACE) Support » Delete Field myfield vs SET myfield = NULL
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.