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 IBM MQ Support » cannot run runmqdlq under trigger monitor

Post new topic  Reply to topic
 cannot run runmqdlq under trigger monitor « View previous topic :: View next topic » 
Author Message
HenriqueS
PostPosted: Wed Sep 17, 2008 12:23 pm    Post subject: cannot run runmqdlq under trigger monitor Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2008 12:54 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

dir /x.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Sep 17, 2008 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
HenriqueS
PostPosted: Thu Sep 18, 2008 12:10 pm    Post subject: Yes! Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Tue Aug 03, 2010 9:42 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
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
View user's profile Send private message
exerk
PostPosted: Tue Aug 03, 2010 10:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed Aug 04, 2010 12:03 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
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
View user's profile Send private message
exerk
PostPosted: Wed Aug 04, 2010 12:21 am    Post subject: Reply with quote

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
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 IBM MQ Support » cannot run runmqdlq under trigger monitor
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.