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 Discussion » How to pause within MQSC

Post new topic  Reply to topic
 How to pause within MQSC « View previous topic :: View next topic » 
Author Message
EricL
PostPosted: Thu Feb 19, 2015 1:07 pm    Post subject: How to pause within MQSC Reply with quote

Centurion

Joined: 10 Oct 2014
Posts: 100

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
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 19, 2015 1:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulClarke
PostPosted: Thu Feb 19, 2015 1:56 pm    Post subject: Reply with quote

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
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 Discussion » How to pause within MQSC
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.