| Author | 
		  Message
		 | 
		
		  | HenriqueS | 
		  
		    
			  
				 Posted: Wed Sep 17, 2008 12:23 pm    Post subject: cannot run runmqdlq under trigger monitor | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 22 Sep 2006 Posts: 235
  
  | 
		  
		    
			  
				Folks, 
 
 
I am setting up a process definition for a trigger that runs the DLQ handler to clean up it.
 
 
This is my process attributes:
 
 
AMQ8407:
 
   PROCESS(RUNMQDLQ)                       APPLTYPE(WINDOWSNT)
 
   APPLICID("C:\Program Files\IBM\WebSphere MQ\bin\runmqdlq.exe")
 
   ENVRDATA( )                             USERDATA( )
 
   DESCR( )                                ALTDATE(2008-09-17)
 
   ALTTIME(17.12.40)
 
 
The problem is that the trigger monitor refuses to run the application. When using double quotes it says:
 
   
	| Quote: | 
   
  
	
 
'C:\Program' is not recognized as an internal or external command,
 
operable program or batch file.
 
 | 
   
 
 
 
When using single quotes, it says:
 
   
	| Quote: | 
   
  
	
 
The filename, directory name, or volume label syntax is incorrect.
 
 | 
   
 
 
 
I did not even deal yet with the command line arguments that I have to supply...
 
 
I am missing any detail? _________________ HenriqueS
 
Certified Websphere MQ 6.0 System Administrator | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Wed Sep 17, 2008 12:54 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gbaddeley | 
		  
		    
			  
				 Posted: Wed Sep 17, 2008 6:07 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia 
  | 
		  
		    
			  
				Try adding single quotes,
 
 
APPLICID('"C:\Program Files\IBM\WebSphere MQ\bin\runmqdlq.exe" QNAME QMGR <C:\dirname\parmfile') 
 
 
I haven't tested this. _________________ Glenn | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | HenriqueS | 
		  
		    
			  
				 Posted: Thu Sep 18, 2008 12:10 pm    Post subject: Yes! | 
				     | 
			   
			 
		   | 
		
		
		    Master
 
 Joined: 22 Sep 2006 Posts: 235
  
  | 
		  
		    
			  
				Folks, thanks for the support. I tried using 8.3 filenames not even using quotes for the command line arguments and IT WORKED.
 
 
See below my DISPLAY PROCESS output
 
 
   PROCESS(RUNMQDLQ)                       APPLTYPE(WINDOWSNT)
 
   APPLICID(C:\PROGRA~1\IBM\WEBSPH~1\bin\runmqdlq.exe SYSTEM.DEAD.LETTER.QUEUE Q
 
M_SWIFT_HOMO < regras-swift.txt)
 
   ENVRDATA( )                             USERDATA( )
 
   DESCR( )                                ALTDATE(2008-09-1 
 
   ALTTIME(16.47.35) _________________ HenriqueS
 
Certified Websphere MQ 6.0 System Administrator | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | zpat | 
		  
		    
			  
				 Posted: Tue Aug 03, 2010 9:42 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 19 May 2001 Posts: 5867 Location: UK 
  | 
		  
		    
			  
				I am looking at runmqdlq, for the first time (in 15 years of MQ) because I prefer to design apps that never go wrong    
 
 
Anyway, what's the best to run it? Triggered or as a service?
 
 
We don't actually run a TM either (I generally discourage triggering). So I would prefer a DLQ handler service, if that's possible, started and stopped with the QM?
 
 
Would that work (MQ 6, AIX)? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Tue Aug 03, 2010 10:55 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| zpat wrote: | 
   
  
	I am looking at runmqdlq, for the first time (in 15 years of MQ) because I prefer to design apps that never go wrong    
 
 
Anyway, what's the best to run it? Triggered or as a service?
 
 
We don't actually run a TM either (I generally discourage triggering). So I would prefer a DLQ handler service, if that's possible, started and stopped with the QM?
 
 
Would that work (MQ 6, AIX)? | 
   
 
 
 
Running it triggered has worked fine for me in the past; caveats are, ensure that the DLQ is not used as a dump queue (yes java programmers, I'm pointing the finger at you!) and there needs to be a catch-all rule to move stuff off that might strand there, or not fall within a specific rule. I've never started it as a service(yet) but the only way I can think of to keep it running indefinitely would be to specify a very long wait time, or change and recompile the sample. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | zpat | 
		  
		    
			  
				 Posted: Wed Aug 04, 2010 12:03 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 19 May 2001 Posts: 5867 Location: UK 
  | 
		  
		    
			  
				The rules file can specify the control option WAIT(YES) which gives an indefinite wait for rundlqmq.
 
 
That should work with a service approach. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Wed Aug 04, 2010 12:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				That'll teach me to go back and check the manual    _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |