Hi Nobert, it turned out the problem was not the syntax, but the way "batch job" is defined.
What I was trying was let that field call a notify.bat file, which didn't work. It start working when I copied the content of that notify.bat file into the "Command Fail" field directly. This prompt me to write a small C program that makes a system call to invoke the notify.bat . I then put this notify.exe into the "Command Fail" field, and tested, it works great now. Thank you so much, it is really your responses that inspired me to think and test more which eventually led me to the solution. Paul, maybe you want to add a paragraph about this behavior to your document ? best regards, Benjamin F. Zhou Technical Specialist Enterprise Application Integration Mercedes-Benz USA x.2474 Pfister Norbert <[EMAIL PROTECTED] To: [EMAIL PROTECTED] ELLIUM.COM> cc: Sent by: MQSeries Subject: AW: AW: MO71 "Command Fail/OK" field not working. List <[EMAIL PROTECTED] AC.AT> 03/10/2004 01:38 AM Please respond to MQSeries List Hi Benjamin, your command syntax is wrong: To activate a batch, you have to type "cmd.exe /c........" In your case: "cmd.exe /cd:\utils\notify.bat QMName" or in MO71 even "cmd.exe /cd:\utils\notify.bat %m" according to Paul Clarke's mqmon.pdf chapter 8 - Queue Manager monitoring . Regards, Norbert Pfister IT DB/DC-Systemtechnik ITELLIUM Systems & Services GmbH N - Bau V, 1. Stock, Zi. 105 Fürther Strasse 205 D-90429 Nürnberg, Germany Tel.: (+49) 0911/14-26548 Fax: (+49) 0911/14-36548 Mobil: (+49) 0151/14265011 mailto:[EMAIL PROTECTED] -----Ursprüngliche Nachricht----- Von: Benjamin F. Zhou [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. März 2004 14:49 An: [EMAIL PROTECTED] Betreff: Re: AW: MO71 "Command Fail/OK" field not working. Hi Nobert, thanks for taking the time to reply. What Windows version are you using? We use XP. Here is my command string in the Command OK field: "d:\utils\notify.bat QMName". I also tried your syntax by typing "cmd.exe /d:\utils\notify.bat QMName". With the same result. If I understand correctly, the string in this field is put into a system call system(). Could this be a XP specific bug? mit herzlichem Dank, Benjamin F. Zhou Technical Specialist Enterprise Application Integration Mercedes-Benz USA x.2474 Pfister Norbert <[EMAIL PROTECTED] To: [EMAIL PROTECTED] ELLIUM.COM> cc: Sent by: MQSeries Subject: AW: MO71 "Command Fail/OK" field not working. List <[EMAIL PROTECTED] AC.AT> 03/09/2004 01:21 AM Please respond to MQSeries List Hi Benjamin, we did successfully via VisualBasic script: cmd.exe /cmonitor.vbs ok n %m %l cmd.exe /cmonitor.vbs fail y %m %l where the parms are: ' 1 - what: "ok" or "fail" ' 2 - MsgBox: "y" for yes, otherwise only to logfile ' 3 - QMGR-Name ' 4-n Location / Title Of course I had to activate the Windows scripting host on my workstation. Regards, Norbert Pfister IT DB/DC-Systemtechnik ITELLIUM Systems & Services GmbH N - Bau V, 1. Stock, Zi. 105 Fürther Strasse 205 D-90429 Nürnberg, Germany Tel.: (+49) 0911/14-26548 Fax: (+49) 0911/14-36548 Mobil: (+49) 0151/14265011 mailto:[EMAIL PROTECTED] -----Ursprüngliche Nachricht----- Von: Benjamin F. Zhou [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. März 2004 20:22 An: [EMAIL PROTECTED] Betreff: MO71 "Command Fail/OK" field not working. Hi All, Again many thanks to all those who helped me located the key in monitoring MQ on z/OS with MO71. Now I am testing using MO71 to monitor our MQ network employe the "command Fail" field to run a batch job which sends out emails. But this seems not working. I also tried the command "amqsput TESTQ TESTQM < mail.txt", with the same result, got the msg "command submitted", but nothing is done. Has anyone successfully used this field to execute a command? I wonder what I could be doing wrong. thanks for your help. Benjamin Zhou 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 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 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 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 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