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 » Destination list question

Post new topic  Reply to topic
 Destination list question « View previous topic :: View next topic » 
Author Message
anon_kb
PostPosted: Thu Apr 16, 2015 4:32 am    Post subject: Destination list question Reply with quote

Acolyte

Joined: 13 Nov 2014
Posts: 74

Hi, Good evening.

Just asking for help about this one. I would like to populate my message using destination list from the different queues called in the query. But my message goes to the DLQ. Anyway I've successfully run the destination list but I've called the data manually.


Quote:
SET Environment.Variables.NameArr[] = (SELECT T.PARM_VALUE FROM Database.GIC_ROUTING_PARMS AS T WHERE T.ROUTING_LABEL= 'WMB_N2_LDCSUB00_001' AND T.ROUTING_QUALIFIER = 'pcode001');

DECLARE I, ctrQueue INT;
SET ctrQueue = CARDINALITY(Environment.Variables.NameArr[]);

SET I = 1;

WHILE (I <= ctrQueue) DO
SET OutputLocalEnvironment.Destination.MQ.DestinationData[I].queueName= Environment.Variables.NameArr[I];
SET I = I + 1;
END WHILE;
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 16, 2015 4:58 am    Post subject: Re: Destination list question Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

anon_kb wrote:
But my message goes to the DLQ.


Have you confirmed that the DLQ code is 2085? If so, what's the target queue in the DLQ header?

anon_kb wrote:
Anyway I've successfully run the destination list but I've called the data manually.


By which you mean that if you specifically put string values in the destination list it works? If so, what does the user trace show when you run the code you posted?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
christopher j
PostPosted: Thu Apr 16, 2015 6:00 am    Post subject: Reply with quote

Novice

Joined: 01 Jan 2010
Posts: 20

Did you try printing your Environment.Variables.NameArr in user trace ?

I believe your code should be ,
Code:

SET OutputLocalEnvironment.Destination.MQ.DestinationData[I].queueName= Environment.Variables.NameArr[I].PARM_VALUE ;
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 » Destination list question
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.