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 » Mainframe, CICS, TXSeries » Help on writing to more than 1 queue

Post new topic  Reply to topic
 Help on writing to more than 1 queue « View previous topic :: View next topic » 
Author Message
konic
PostPosted: Mon Jan 14, 2008 8:42 am    Post subject: Help on writing to more than 1 queue Reply with quote

Newbie

Joined: 14 Jan 2008
Posts: 2

Can anyone please help.

I want to do the following code in BATCH COBOL:

Connect to Q-manager

Open the Queues (> 1)

While data available (could be 1000 messages per run)

Process the data

Put to Queues (Hopefully one command)


Continue while data still available

Close the Queues

Disconnect.

This is basicaly trying to code distrubition lists without using distributin lists (not available in our environment)

Thanks in anticipation[/b]
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 14, 2008 8:53 am    Post subject: Re: Help on writing to more than 1 queue Reply with quote

Grand High Poobah

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

konic wrote:
This is basicaly trying to code distrubition lists without using distributin lists (not available in our environment)


How can you meet this requirement without a list of queues of some description? I mean, logically speaking, you need a list of targets for whatever method you end up employing. Don't you?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 14, 2008 9:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The choices you have for one-to-many sendings in MQ are
1) manual puts to each destination
2) distribution list
3) pub/sub

You say you don't want to do 1, and you can't do 2. That leaves 3.

Or you can do 1.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
konic
PostPosted: Mon Jan 14, 2008 9:11 am    Post subject: Reply with quote

Newbie

Joined: 14 Jan 2008
Posts: 2

Thanks for the reply.

Agree, I will keep the queue names in either a namelist, or read them off a DB2 table.

I used high level pseudo code to try and present my problem as imply as possible.

Hope you can help

Regards
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jan 15, 2008 1:39 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Just repeat the MQPUT or MQPUT1 in the code - anything else in your case is not worth the hassle.
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 » Mainframe, CICS, TXSeries » Help on writing to more than 1 queue
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.