Mike & Razzak,

I've had this happen to me and I _think_ what happens is that in a command
file you probably set the error message(s) off and do not set them back on
again before the end of the file and, probably, the R:Base session.

That's no problem but if you then run the command file through TRACE again
is comes up with an error when, presumably, trying to set any error message
off which is already off. Of course, running the command normally shows no
error because the error message is already turned off.

Another possibility is if you break out of TRACE before reaching the turn
back on statements and re-run.

Either way, it seems to cause no problems other than show up an error
message in TRACE on second and subsequent runs which, in my experience, can
be ignored.

Hope that helps,
Regards,
Alastair.


----- Original Message -----
From: "A. Razzak Memon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 9:52 PM
Subject: Re: Set error message # off syntax - Razzak's Reply


>
> Mike,
>
> You can selectively turn OFF any -ERROR- message(s) in your
> command file (very handy for TRACing) by doing the following:
>
> SET ERROR MESSAGE Error# OFF
>
> To turn it back ON:
>
> SET ERROR MESSAGE Error# ON
>
> For example, to not see the:
>
> -WARNING- No rows exist or the specified clause.
>
> You can do the following:
>
> SET ERROR MESSAGE 2059 OFF
>
> This new feature has a limit of 5 -ERROR- numbers to set OFF
> and each one requires a separate command.
>
> To avoid any limits, I would recommend the following syntax:
>
> SET ERROR MESSAGE Error# ON
> SET ERROR MESSAGE Error# OFF
>
> Hope that helps.
>
> Enjoy and make sure to have fun!
>
> Very Best Regards,
>
> Razzak.
>
> At 04:42 PM 5/20/2002 -0400, Mike Sinclair wrote:
>
> >Sometimes when I have
> >
> >SET ERROR MESSAGE 2059 OFF
> >
> >in my code it works.  Sometimes doing a trace it gives me an error
> >message saying the syntax is wrong.  I seem to recall something about a
> >limit of 5 error messages that can be set off, and I also remember
> >seeing something about not being able to use that command more than 5
> >times.......like maybe it should only be used inside Rbase.dat?  or only
> >when followed by a
> >
> >SET ERROR MESSAGE 2059 ON
> >
> >to "undo" it?  Can anybody shed any light?
>
>
> ================================================
> TO SEE MESSAGE POSTING GUIDELINES:
> Send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: INTRO rbase-l
> ================================================
> TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: UNSUBSCRIBE rbase-l
> ================================================
> TO SEARCH ARCHIVES:
> http://www.mail-archive.com/rbase-l%40sonetmail.com/

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to