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 » remove entry from destination list

Post new topic  Reply to topic
 remove entry from destination list « View previous topic :: View next topic » 
Author Message
boos
PostPosted: Fri Jun 11, 2004 3:41 am    Post subject: remove entry from destination list Reply with quote

Apprentice

Joined: 27 Jan 2004
Posts: 37
Location: Netherlands

Hello,

How do I remove an entry from the destination list ?

The NNSY node made a destination list and I would like to remove one entry (conditionally). The ESQL code in the compute node seems to work except for removing the (last) entry from the destination list.
This is the ESQL code I use
SET C = CARDINALITY(InputRoot.*[]);
SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[C]=NULL;
This seems to do the trick according to the trace node (the entry isn't there anymore in the ${DestinationList}) but the WMQI gives this error (in the event log): Ensure that element n-1 exists before attempting to create element n.
If I use the ESQL
DETACH OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[C];
My trace node gives me an empty entry in the destination list (and the WMQI gives, rightly so, an error MQRC 2085 that it couldn´t find the right queue).

We use WMQI v2.1

P.S.
The reason I can not solve this within the NNSY node is that it currently does the trick but uses alternatives and alternatives that don´t fit end up as errors in the joblog (and the joblog grows VERY big). So I attempt to solve this within a compute node.
Back to top
View user's profile Send private message
JT
PostPosted: Fri Jun 11, 2004 5:20 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

boos,

Are you sure that the value that's assigned to the variable C equates to the last occurrence of the array? Try this:
Code:
SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[LAST]=NULL;

The error seems to be saying your array is out of sequence, an occurrence of OutputLocalEnvironment.Destination.MQDestinationList.DestinationData is missing.
Back to top
View user's profile Send private message
boos
PostPosted: Fri Jun 11, 2004 7:13 am    Post subject: Reply with quote

Apprentice

Joined: 27 Jan 2004
Posts: 37
Location: Netherlands

Thanks JT,

you hit the right spot. The fault was in the value of the C variable it shouldn't be cardinality of the inputroot but the value should haven been
SET C = CARDINALITY(InputLocalEnvironment.Destination.MQDestinationList.DestinationData.*[]);

thnx
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 » remove entry from destination list
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.