This is the Windows batch file mq_control.bat I have left behind 2 sample channels (from.to.chl1 and from.to.chl2) which use 2 transmission queue2 (from.to.xmit1 and from.to.xmit2)
This version is a little lite compared to the other two, but can easily be brought up to snuff by adding the correct commands. See the usage section for the correct usage syntax. Please note that this command does not assume any default queue manager name; you must specify a queue manager to operate on. Regards, Dave A. ----------------------------------------------------------------------------- @echo off if x%2 == x goto usage if x%1 == x goto usage if %1 == START goto startqm if %1 == start goto startqm if %1 == STOP goto stopqm if %1 == stop goto stopqm if %1 == STARTCHLS goto startchls if %1 == startchls goto startchls if %1 == STOPCHLS goto stopchls if %1 == stopchls goto stopchls :usage echo . echo Usage: %0 command queuemanager echo . echo where 'command' is one of the following: echo start start the queue manager echo stop stop the queue manager echo startchls start the queue manager channels echo stopchls stop the queue manager channels echo . goto endoffile :startqm echo Starting queue manager %2 ... strmqm %2 goto endoffile :stopqm echo Stopping queue manager %2 ... endmqm -i %2 goto endoffile :stopchls echo Stopping channels for queue manager %2 ... echo stop channel(from.to) > d:\mqseries\commandfile runmqsc %2 < d:\mqseries\commandfile > d:\mqseries\commandfile.output type d:\mqseries\commandfile.output echo . echo Verifying channels for queue manager %2 ... sleep 5 echo display chstatus(from.to) > d:\mqseries\verify runmqsc %2 < d:\mqseries\verify > d:\mqseries\verify.out goto endoffile :startchls echo Starting channels for queue manager %2 ... echo reset channel(from.to) > d:\mqseries\commandfile echo start channel(from.to) >> d:\mqseries\commandfile runmqsc %2 < d:\mqseries\commandfile > d:\mqseries\commandfile.output type d:\mqseries\commandfile.output echo . echo Verifying channels for queue manager %2 ... sleep 5 echo display chstatus(from.to) > d:\mqseries\verify runmqsc %2 < d:\mqseries\verify > d:\mqseries\verify.out type d:\mqseries\verify.out goto endoffile :endoffile ===== David A. Awerbuch, IBM Certified MQSeries Specialist APC Consulting Services, Inc. Providing Automated Solutions to Business Challenges West Hempstead, NY (516) 481-6440 [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
