| Author | 
		  Message
		 | 
		
		  | masteringmq | 
		  
		    
			  
				 Posted: Mon Feb 02, 2009 6:41 pm    Post subject: crtmqm | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 20 Oct 2008 Posts: 200
  
  | 
		  
		    
			  
				crtmqm -q -d abc def
 
 
-q = default queue manager
 
-d = transmission queue
 
 
by issuing the command above, "def" is the default queue manager being created. This is tested by running the control command strmqm only. So the default transmission queue created is abc. Why is it that the creation of the default queue manager and transmission queue does not follow the sequence of the option -q -d. In other words abc is the default queue manager and def is the transmission queue. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | PeterPotkay | 
		  
		    
			  
				 Posted: Mon Feb 02, 2009 6:59 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 15 May 2001 Posts: 7723
  
  | 
		  
		    
			  
				Review the syntax of the command in the InfoCenter, and ask any followup question. Its working as designed and documented. _________________ Peter Potkay
 
Keep Calm and MQ On | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | AkankshA | 
		  
		    
			  
				 Posted: Mon Feb 02, 2009 7:48 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 12 Jan 2006 Posts: 1494 Location: Singapore 
  | 
		  
		    
			  
				Usage: crtmqm [-z] [-q] [-c Text] [-d DefXmitQ] [-h MaxHandles]
 
              [-g ApplicationGroup] [-ss | -sa | -si]
 
              [-t TrigInt] [-u DeadQ] [-x MaxUMsgs] [-lp LogPri] [-ls LogSec]
 
              [-lc | -ll] [-lf LogFileSize] [-ld LogPath] QMgrName
 
 
 
its working as designed _________________ Cheers | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | masteringmq | 
		  
		    
			  
				 Posted: Tue Feb 03, 2009 7:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 20 Oct 2008 Posts: 200
  
  | 
		  
		    
			  
				confusing but then it's ok.
 
 
crtmqm -q [-d abc] def 
 
 
[-d abc] as default transmission queue
 
 
-q ......] def as default queue manager | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | masteringmq | 
		  
		    
			  
				 Posted: Tue Feb 03, 2009 6:58 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 20 Oct 2008 Posts: 200
  
  | 
		  
		    
			  
				This looks much organized:
 
 
crtmqm -u m -d mes -q zaza
 
 
m - dead letter queue
 
mes - transmission queue
 
zaza - default queue manager
 
 
when compared to crtmqm -q -d abc def
 
 
abc - transmission queue
 
def - default queue manager | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Wed Feb 04, 2009 3:56 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				-q does not hold a value.
 
 
It does not say "this qmgr named <abc> is the default qmgr".
 
 
It is a flag.
 
 
It says "this qmgr that I am creating, with all of these other options, should be made the default qmgr".  
 
 
Don't use a default qmgr.  It's not helpful in most cases. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Wed Feb 04, 2009 4:06 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| mqjeff wrote: | 
   
  
	| -q does not hold a value. | 
   
 
 
 
As you will discover to your cost if you type:
 
 
   
	| Code: | 
   
  
	| crtmqm -u m -d mes -q zaza  | 
   
 
 
 
and then
 
 
   
	| Code: | 
   
  
	| crtmqm -u m -d mes -q zaza abc | 
   
 
 
 
to define a non-default queue manager called abc. Worse still is someone else typing
 
 
   
	| Code: | 
   
  
	| crtmqm -u m -d mes -q abc | 
   
 
 
 
 
 
 
   
	| mqjeff wrote: | 
   
  
	| Don't use a default qmgr.  It's not helpful in most cases. | 
   
 
 
 
 
 
 
See my example above. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | masteringmq | 
		  
		    
			  
				 Posted: Wed Feb 04, 2009 6:11 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 20 Oct 2008 Posts: 200
  
  | 
		  
		    
			  
				weired:
 
 
crtmqm -q gaza -u m -d mes
 
 
says:
 
AMQ7027: Argument -u supplied to command crtmqm is invalid.
 
Usage: crtmqm [-z] [-q] [-c Text] [-d DefXmitQ] [-h MaxHandles]
 
              [-g ApplicationGroup]
 
              [-t TrigInt] [-u DeadQ] [-x MaxUMsgs] [-lp LogPri] [-ls LogSec]
 
              [-lc | -ll] [-lf LogFileSize] [-ld LogPath] QMgrName
 
 
I will take the advice   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | AkankshA | 
		  
		    
			  
				 Posted: Wed Feb 04, 2009 10:13 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 12 Jan 2006 Posts: 1494 Location: Singapore 
  | 
		  
		    
			  
				crtmqm -q gaza -u m -d mes 
 
 
gaza which i suppose is QM name is placed wrongly
 
 
 
crtmqm -q -u m -d mes gaza
 
shall work _________________ Cheers | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Feb 05, 2009 12:56 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| masteringmq wrote: | 
   
  
	I will take the advice   | 
   
 
 
 
Read the earlier posts, the documentation and in extremis the text of the error message!   _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sumit | 
		  
		    
			  
				 Posted: Thu Feb 05, 2009 1:58 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Partisan
 
 Joined: 19 Jan 2006 Posts: 398
  
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	| crtmqm -q gaza -u m -d mes | 
   
 
 
 
As full stop (.) always comes at the end of a statement (no matter what you write) in the same way queue manager name always comes at the end of 'crtmqm' command (no matter what/how many parameter you pass). _________________ Regards
 
Sumit | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Feb 05, 2009 2:09 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| sumit wrote: | 
   
  
	
   
	| Quote: | 
   
  
	| crtmqm -q gaza -u m -d mes | 
   
 
 
 
As full stop (.) always comes at the end of a statement (no matter what you write) in the same way queue manager name always comes at the end of 'crtmqm' command (no matter what/how many parameter you pass). | 
   
 
 
 
Nicely put!    
 
 
         _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | masteringmq | 
		  
		    
			  
				 Posted: Thu Feb 05, 2009 7:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 20 Oct 2008 Posts: 200
  
  | 
		  
		    
			  
				Yes. I was just highlighting the concept used to build the crtmqm control command  
  Last edited by masteringmq on Thu Feb 05, 2009 8:18 am; edited 1 time in total | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Feb 05, 2009 7:55 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| masteringmq wrote: | 
   
  
	Yes. I was just highlighting the concept used to build the strmqm control command   | 
   
 
 
 
Highlighting what concept? And what has strmqm got to do in any sense with crtmqm? Except that the queue manager name (if specified) is not a parameter but the last arguement? A concept you seemed to be having trouble with earlier in the post? _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | masteringmq | 
		  
		    
			  
				 Posted: Thu Feb 05, 2009 8:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 20 Oct 2008 Posts: 200
  
  | 
		  
		    
			  
				| The concept in which the software developer build the crtmqm control command. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |