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 » Running MQSC commands from a file

Post new topic  Reply to topic
 Running MQSC commands from a file « View previous topic :: View next topic » 
Author Message
KIRANP
PostPosted: Fri Jul 26, 2002 2:57 pm    Post subject: Running MQSC commands from a file Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Fri Jul 26, 2002 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KIRANP
PostPosted: Sat Jul 27, 2002 7:55 am    Post subject: Hi Reply with quote

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
View user's profile Send private message
kolban
PostPosted: Sat Jul 27, 2002 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message
KIRANP
PostPosted: Sat Jul 27, 2002 10:11 am    Post subject: hi Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Sat Jul 27, 2002 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
KIRANP
PostPosted: Sat Jul 27, 2002 1:05 pm    Post subject: hi Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sat Jul 27, 2002 6:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KIRANP
PostPosted: Sun Jul 28, 2002 9:15 am    Post subject: Working Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Running MQSC commands from a file
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.