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 » General IBM MQ Support » AS/400 Queue Manager Recognition

Post new topic  Reply to topic
 AS/400 Queue Manager Recognition « View previous topic :: View next topic » 
Author Message
cplittle06
PostPosted: Thu Mar 25, 2004 11:27 am    Post subject: AS/400 Queue Manager Recognition Reply with quote

Newbie

Joined: 25 Mar 2004
Posts: 6
Location: Winston Salem, NC

I am attempting to create a generic CL program for journal receiver maintenance to use on multiple servers. To pass the appropriate parameters to commands, I need to determine all queue manager names currently in RUNNING state on the server and their queue manager library names. I have yet to determine how to capture those values within a CL program. Any help is greatly appreciated. Thanks. Chad
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Mar 25, 2004 12:10 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

DSPMQM would give you the Queue Managers and their status.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cplittle06
PostPosted: Thu Mar 25, 2004 12:21 pm    Post subject: Reply with quote

Newbie

Joined: 25 Mar 2004
Posts: 6
Location: Winston Salem, NC

The queue manager name must be passed to the DSPMQM command, correct? I am looking to discover what queue managers are running on the server, set those queue manager names to variables, all within a CL program.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 25, 2004 12:33 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

iSeries System Administration Guide wrote:
General usage tips

Most groups of WebSphere MQ commands, including those associated with queue managers, queues, channels, namelists, process definitions, and authentication information objects can be accessed using the relevant WRK* command.

The principal command in the set is WRKMQM. This command allows you, for example, to display a list of all the queue managers on the system, together with status information. Alternatively, you can process all queue-manager specific commands using various options against each entry.

http://publibfp.boulder.ibm.com/epubs/html/amqwag01/amqwag010u.htm#Header_50
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
cplittle06
PostPosted: Fri Mar 26, 2004 12:39 pm    Post subject: Reply with quote

Newbie

Joined: 25 Mar 2004
Posts: 6
Location: Winston Salem, NC

Thanks for the input, but you guys must be missing the point here. I don't want to "display" the queue manager names and their statuses. I want to have them returned via a command within a CL program. Anybody have any ideas?
Back to top
View user's profile Send private message
jhues789
PostPosted: Mon Mar 29, 2004 12:14 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Jan 2004
Posts: 37
Location: Madison WI

Create a SRCFILE with the command you want to run in it.

DSPMQM(*)



In your CL use

STRMQMMQSC SRCMBR(Your srcmbr) SRCFILE(Your lib/Your file)

This will produce a spool file that will have the information you are looking for. Read it into your program.
Back to top
View user's profile Send private message Visit poster's website
cplittle06
PostPosted: Wed Mar 31, 2004 6:40 pm    Post subject: Reply with quote

Newbie

Joined: 25 Mar 2004
Posts: 6
Location: Winston Salem, NC

DSPMQM must be passed a queue manager name. It will not accept a wildcard. Since the queue manager name is what I don't have, this won't work. Any other suggestions??
Back to top
View user's profile Send private message
jhues789
PostPosted: Thu Apr 01, 2004 5:41 am    Post subject: Reply with quote

Apprentice

Joined: 20 Jan 2004
Posts: 37
Location: Madison WI

Use DISPLAY QMGR to display the queue manager attributes for this queue manager.

Synonym: DIS QMGR

DISPLAY QMGR.

>>-DISPLAY QMGR---+-----+----+---------------------+-----------><
'-ALL-' '-| requested attrs |-'

http://www-306.ibm.com/software/integration/mqfamily/library/manualsa/csqzaj/csqzaj1m.htm#HDRDISMMS

Will this command work........Looks like it accepts the ALL..showing all of the queue managers. I only have 1 queue manager per system so I can't check.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » AS/400 Queue Manager Recognition
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.