Ruzi,
this might be totally off, but did you actually type "<hard return>" at the
end of the line? You said you copied/pasted the file, which makes me think
that this is what you did.
I think people meant that you have to hit the ENTER key at every line as you
enter it into your favorite editor, plus add an additional empty line at the
end of the file.
Secondly, I think you need to invoke the dlq handler with the redirection of
stdin, so instead of typing
"Runmqdlq c:\mydlq.rul" you could try to use "Runmqdlq < c:\mydlq.rul"
BTW, that's why the empty line at the end of the file is important, because
otherwise runmqdlq keeps waiting for more input...
Good luck,
Stefan

From: Ruzi R <[EMAIL PROTECTED]>
Reply-To: MQSeries List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Why runmqdlq is not doing its job?
Date: Mon, 23 Jun 2003 13:03:46 -0700

John,

 Here is how my rule table looks like (I did a
copy/paste):

inputqm (QM1)inputq (QM1.DEAD) WAIT(NO) <hard return>
ACTION (FWD) FWDQ (Q1) FWDQM (QM1) HEADER (YES)

And it is still not working. By the way, the messages
DO have the DLH header (as they are generated by the
qmgr QM1).

Thanks,

Ruzi

--- "Dawson, John" <[EMAIL PROTECTED]>
wrote:
> Ruzi,
>
>   The hardest thing that I found about the runmqdlq
> script file is what
> Brain stated about hard returns and white spaces.
> Verify that there is not a
> hard return after the second line and that there is
> one after the first
> line.
>
>
> HTH,
>
> John Dawson
>
>
>  -----Original Message-----
> From:   Ruzi R [mailto:[EMAIL PROTECTED]
> Sent:   Monday, June 23, 2003 1:17 PM
> To:     [EMAIL PROTECTED]
> Subject:        Re: Why runmqdlq is not doing its
> job?
>
> Brian,
>
> I have put <hard return> at the end of each rule, if
> that is what you mean. But it is still not working.
> I
> cannot pull of any messages at all. And these
> messages
> are not expired (expire=unlimited).
>
> Ruzi
>
> --- "McCarty, Brian" <[EMAIL PROTECTED]> wrote:
> > Did you put a return in your mydlq.rul file on the
> > last line?  Can you get runmqldq to pull off any
> > messages at all when using a rules file?  When you
> > run it interactively you have to key control-z,
> > control-z in order for the commands to be
> executed.
> > Put a hard return at the end of your rule and try
> > again.
> >
> > WAIT(NO) ACTION....<hard return>
> >
> > Brian M. McCarty
> > USAA, Senior Systems Programmer
> > 210.913.1678
> > MQ/WMQI Specialist/Solutions Expert
> > e-business Solution Advisor/Designer/Technologist
> >
> >  -----Original Message-----
> > From:   Ruzi R [mailto:[EMAIL PROTECTED]
> > Sent:   Monday, June 23, 2003 12:34 PM
> > To:     [EMAIL PROTECTED]
> > Subject:             Why runmqdlq is not doing its
> > job?
> >
> > I am on  MQ 5.3 CSD03 on W2K. I have a qmgr QM1
> > which
> > uses QM1.DEAD as its dead letter q. Both QM1.DEAD
> > and
> > Q1 are  defined as local queues on QM1 (they both
> > are
> > put/get enabled, maxmsglenghth = qmgr max length,
> > qdepth=40000, Shared). Currently  QM1.DEAD has 3
> > messages on it.
> >
> > I have a rule table (mydlq.rul)  that just has
> these
> > 2
> > lines in it just for testing:
> >
> > inputqm(QM1) inputq(QM1.DEAD)
> >
> > ACTION(FWD) FWDQ(Q1) FWDQM(QM1) HEADER(YES)
> >
> > When I run the runmqdlq on the command prompt as:
> >
> > Runmqdlq c:\mydlq.rul
> >
> > It starts running but  QM1.DEAD still has  3
> > messages,
> >  as if the runmqdlq is ignoring  the  action(fwd)
> > in
> > the rule table. Why is it not working?
> >
> > Thanks,
> >
> > Ruzi
> >
> > Instructions for managing your mailing list
> > subscription are provided in
> > the Listserv General Users Guide available at
> > http://www.lsoft.com
> > Archive: http://vm.akh-wien.ac.at/MQSeries.archive
> >
> > Instructions for managing your mailing list
> > subscription are provided in
> > the Listserv General Users Guide available at
> > http://www.lsoft.com
> > Archive: http://vm.akh-wien.ac.at/MQSeries.archive
>
> Instructions for managing your mailing list
> subscription are provided in
> the Listserv General Users Guide available at
> http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive
>
> Instructions for managing your mailing list
> subscription are provided in
> the Listserv General Users Guide available at
> http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to