Author |
Message
|
KIRANP |
Posted: Fri Jul 26, 2002 2:57 pm Post subject: Running MQSC commands from a file |
|
|
Acolyte
Joined: 23 Jul 2002 Posts: 51
|
Hi,
I am trying to run my object definitions from a file .I am getting the following error. Where shall i have to save the file Input.txt. Any specific folder???
C:\runmqsc QM < Input.txt
Error: The system cannot find the file specified.
Thanks
Kiranp |
|
Back to top |
|
 |
kirani |
Posted: Fri Jul 26, 2002 3:53 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Your command file Input.txt need not be stored into specific directory.
If you are not giving any path for the inputfile then it will search for the file in current directory.
Make sure your file is stored in the same directory where you are running this command. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
KIRANP |
Posted: Sat Jul 27, 2002 7:55 am Post subject: Hi |
|
|
Acolyte
Joined: 23 Jul 2002 Posts: 51
|
Hi ,
I tried i didnt work. It says the system cant fins the file.
Can you explain me again where i have to place the file or how the PATH has to be set.
Thanks
Kiranp |
|
Back to top |
|
 |
kolban |
Posted: Sat Jul 27, 2002 10:03 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
It sounds like the "runmqsc" command is not in your path. It is normally located in
C:\Program Files\IBM\MQSeries\bin
If you can't find it, try using the Windows find utility to search for runmqsc.exe |
|
Back to top |
|
 |
KIRANP |
Posted: Sat Jul 27, 2002 10:11 am Post subject: hi |
|
|
Acolyte
Joined: 23 Jul 2002 Posts: 51
|
Hello Kolban,
I am able to execute runmqsc utility. Only when i try executing this
C:\ RUNMQSC QM < INPUT.TXT
It says the system cannot find this file.
Thanks
Kiranp |
|
Back to top |
|
 |
bduncan |
Posted: Sat Jul 27, 2002 12:41 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
From the directory you are in, type:
"DIR INPUT.TXT"
It will either show you the size, modified date, etc., of the file, or "file not found". If it shows the file you should be able to pipe it into runmqsc. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
KIRANP |
Posted: Sat Jul 27, 2002 1:05 pm Post subject: hi |
|
|
Acolyte
Joined: 23 Jul 2002 Posts: 51
|
Hi,
When i do DIR input.txt.
It gives:
Volume in drive C has no lable.
Volume serial Number is 2CA9-9454
File not found.
____________________
But the file exists in the directory.
Thanks
Kiranp |
|
Back to top |
|
 |
kirani |
Posted: Sat Jul 27, 2002 6:56 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Well .. but the command is telling you that the file doesn't exist in this directory. It might be there in some other directory.
Goto your root directory, like C:\ and run command dir input.txt /s. If the file exist on C: drive, it will tell in which directory the file exist. Now goto that directory and run your command. As kolban said, make sure file runmqsc.exe is in your path. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
KIRANP |
Posted: Sun Jul 28, 2002 9:15 am Post subject: Working |
|
|
Acolyte
Joined: 23 Jul 2002 Posts: 51
|
Hi Guys,
Finlly with all of your help and guidance i could run the script.
c:\runmqsc QM <C:\KIRAN\INPUT.TXT
Thanks for your help
Kiranp |
|
Back to top |
|
 |
|