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 » Can we assign a OutputRoot to OutputRoot?

Post new topic  Reply to topic
 Can we assign a OutputRoot to OutputRoot? « View previous topic :: View next topic » 
Author Message
mq_developer
PostPosted: Wed Sep 03, 2003 2:02 pm    Post subject: Can we assign a OutputRoot to OutputRoot? Reply with quote

Voyager

Joined: 18 Feb 2002
Posts: 82

Does MQSI allows to copy a field from OutputRoot just created to the populate the next the field in the OutputRoot Tree?

Something Like

SET OutputRoot.MRM.Temp = 'abc';
SET OutputRoot.MRM.Field1 = OutputRoot.MRM.Temp ;

-- Ram --
Back to top
View user's profile Send private message
Craig B
PostPosted: Wed Sep 03, 2003 2:22 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

Hi,

Yes you can do what you propose in your sample code. The field reference on the RHS of the equals will be evaluated and then either a value, field or subtree copy with occur. There is one potential hazard you need to consider, and this is self referencing. You have to make sure that the field on the LHS of the expression is not a subset of what is on the RHS of the expression. This way you will get into a recursion where what you are copying is modifying at the same time, and this will cause you problems. For example

Code:

SET OutputRoot.MRM.myField = OutputRoot.MRM;

_________________
Regards
Craig
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 » Can we assign a OutputRoot to OutputRoot?
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.