Discussion:
Running MQSC commands by batch
(too old to reply)
Laurence
2005-12-12 04:09:11 UTC
Permalink
Hi there,

Regardless of Windows or Unix-like platforms, I can do MQSC commands
one by one through MQSC shell such as DEFILE QLOCAL(A.TO.B) etc.

If I want to do that by batch method, what can I do? Are there any
samples for reference?


Thanks in advance,

Laurence
Chris McDonald
2005-12-12 08:48:03 UTC
Permalink
Hi Laurence,

You might like to have a look at woollysweater command available at
http://www.woollysweater.com. This allows you full automation of all
your MQSC requirements, including script source-code control and
parameterisation allowing you to run a script of commands against one
or many queue managers by drag and drop. It will also record or
generate MQSC from any queue manager object

cheers

Chris McDonald
ccfoo
2005-12-15 18:49:01 UTC
Permalink
runmqsc QMGRNAME < MyMQSCCommands.txt

Not sure how you check the return code of each one, though.
Chris McDonald
2005-12-16 08:48:30 UTC
Permalink
Hi,

woollysweater command (http://www.woollysweater.com) checks the return
code of each and every MQSC command executed so you can be sure of
knowing if and where a failure ever occurs. Just thought I'd mention it

cheers

Chris McDonald

Loading...