|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to pause within MQSC |
« View previous topic :: View next topic » |
Author |
Message
|
EricL |
Posted: Thu Feb 19, 2015 1:07 pm Post subject: How to pause within MQSC |
|
|
Centurion
Joined: 10 Oct 2014 Posts: 102
|
Hi
There is a need to stop and remove a channel remotely within MQSC:
....
STOP CHANNEL(XXX)
DELETE CHANNEL(XXX)
...
As the channel is remote, would like to add a pause before DELETE to make sure the channel is stopped, checked here and there couldn't find related wait/pause/sleep function within MQSC, anybody can provide advice?
Thanks in advance !
Eric |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 19, 2015 1:09 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't do that in MQSC.
You can only run two copies of runmqsc, one that stops the channel, and one that deletes the channel, and then pause between the first and second. |
|
Back to top |
|
 |
PaulClarke |
Posted: Thu Feb 19, 2015 1:56 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
EricL,
You can easily so this kind of thing in MQSCX. You could issue the command
Quote: |
STOP CHANNEL(XXX); wait(5); DELETE CHANNEL(XXX) |
Or, in fact, you could make it a little cleverer by interrogating whether the channel was running before issuing the delete.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
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
|
|
|
|