|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
remove entry from destination list |
« View previous topic :: View next topic » |
Author |
Message
|
boos |
Posted: Fri Jun 11, 2004 3:41 am Post subject: remove entry from destination list |
|
|
 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 |
|
 |
JT |
Posted: Fri Jun 11, 2004 5:20 am Post subject: |
|
|
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 |
|
 |
boos |
Posted: Fri Jun 11, 2004 7:13 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|