| Author | 
		  Message
		 | 
		
		  | SOLOHERO | 
		  
		    
			  
				 Posted: Sun Apr 27, 2008 10:36 pm    Post subject: extract q from local QM | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 01 Feb 2007 Posts: 107
  
  | 
		  
		    
			  
				hi,
 
 
How can i extract all the queues in my local QM(from MQ) to a wordpad/notepad.
 
 
Thanks _________________ Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Gaya3 | 
		  
		    
			  
				 Posted: Sun Apr 27, 2008 10:53 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US 
  | 
		  
		    
			  
				use some scripting or use MS03 to do so...
 
 
Regards
 
Gayathri _________________ Regards
 
Gayathri
 
-----------------------------------------------
 
Do Something Before you Die | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | AkankshA | 
		  
		    
			  
				 Posted: Sun Apr 27, 2008 11:24 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 12 Jan 2006 Posts: 1494 Location: Singapore 
  | 
		  
		    
			  
				if u just want them to have for as information then
 
 
simply say runmqsc 
 
direct the input from a file with display ql(*) command
 
redirect the o/p to a file
 
 
this file ll have the info of all your queues... _________________ Cheers | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | SOLOHERO | 
		  
		    
			  
				 Posted: Sun Apr 27, 2008 11:53 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 01 Feb 2007 Posts: 107
  
  | 
		  
		    
			  
				hi akansha,
 
 
how do u mean by input file
 
cause i dont have a script with the input files, all the q are under qm and i want to extract all the queues to a file.
 
 
could you please type the command
 
 
C:\Program Files\IBM\MQSI\6.0\bin>runmqsc    ?
 
 
 
Thanks in advance.. _________________ Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Gaya3 | 
		  
		    
			  
				 Posted: Mon Apr 28, 2008 12:00 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US 
  | 
		  
		    
			  
				runmqsc <QMGR NAME> < <File Input>  > <File Output>
 
 
file input should contain
 
dis ql(*)
 
 
 
Mods : Please move this to MQ forum 
 
Regards
 
Gayathri _________________ Regards
 
Gayathri
 
-----------------------------------------------
 
Do Something Before you Die | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | SOLOHERO | 
		  
		    
			  
				 Posted: Mon Apr 28, 2008 12:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 01 Feb 2007 Posts: 107
  
  | 
		  
		    
			  
				Thaks for the reply guys,
 
 
But i get the follwing error when i try to run the cmd, when i say 
 
 
display ql(*) --- it displays all the queues but when i am trying to extract 
 
to a file by using
 
 
display ql(*) "c:\users\sa.in"
 
 
 it throws the syntex error. _________________ Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | AkankshA | 
		  
		    
			  
				 Posted: Mon Apr 28, 2008 12:47 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 12 Jan 2006 Posts: 1494 Location: Singapore 
  | 
		  
		    
			  
				u can extract to a file at runmqsc level... 
 
 
not at mqsc command level..
 
 
 
Also ql shall only display local queues....
 
 
u might be interested in viewing other type of queues as well... like remotre/alias etc      _________________ Cheers | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Apr 28, 2008 12:52 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| SOLOHERO wrote: | 
   
  
	display ql(*) --- it displays all the queues but when i am trying to extract 
 
to a file by using
 
 
display ql(*) "c:\users\sa.in"
 
 
 it throws the syntex error. | 
   
 
 
 
Well of course it does. Think a bit about what you're doing, and how redirection to a file works (hint: it works at an OS level not an MQ one) and you'll see why! _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Gaya3 | 
		  
		    
			  
				 Posted: Mon Apr 28, 2008 12:53 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US 
  | 
		  
		    
			  
				had given the way to get it..
 
but still doing mistakes....
 
 
Regards
 
Gayathri _________________ Regards
 
Gayathri
 
-----------------------------------------------
 
Do Something Before you Die | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Apr 28, 2008 12:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| Gaya3 wrote: | 
   
  
	had given the way to get it..
 
but still doing mistakes....
 
 | 
   
 
 
 
Well, yes, but a poster of your experience should be used to that. People do you know; keep doing mistakes.   _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | SOLOHERO | 
		  
		    
			  
				 Posted: Mon Apr 28, 2008 4:12 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 01 Feb 2007 Posts: 107
  
  | 
		  
		    
			  
				Thanks for your help guys, 
 
i finally ended up using saveqmgrc.exe.
 
Thanks a lot.. _________________ Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |