Author |
Message
|
cplittle06 |
Posted: Thu Mar 25, 2004 11:27 am Post subject: AS/400 Queue Manager Recognition |
|
|
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 |
|
 |
vennela |
Posted: Thu Mar 25, 2004 12:10 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
DSPMQM would give you the Queue Managers and their status. |
|
Back to top |
|
 |
cplittle06 |
Posted: Thu Mar 25, 2004 12:21 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Mar 25, 2004 12:33 pm Post subject: |
|
|
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 |
|
 |
cplittle06 |
Posted: Fri Mar 26, 2004 12:39 pm Post subject: |
|
|
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 |
|
 |
jhues789 |
Posted: Mon Mar 29, 2004 12:14 pm Post subject: |
|
|
 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 |
|
 |
cplittle06 |
Posted: Wed Mar 31, 2004 6:40 pm Post subject: |
|
|
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 |
|
 |
jhues789 |
Posted: Thu Apr 01, 2004 5:41 am Post subject: |
|
|
 Apprentice
Joined: 20 Jan 2004 Posts: 37 Location: Madison WI
|
|
Back to top |
|
 |
|