Re: Suppressing warning messages

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing warning messages

Kathy Reinig

OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS
  /DELETEOBJECT DELETE=YES.



Kathy Reinig
KJ Reinig Associates
quantitative research analysts

+1 978 544 2194  direct
+1 978 894 4808  cell


On Jan 7, 2019, at 4:21 AM, Mario Giesel <[hidden email]> wrote:

I have a huge syntax document that labels all variables of an origin csv file.
However, I'm only getting excerpts of the variables.

Say, 
the origin file has variables v_1 to v_12000 while
the excerpt file might have variables v_7 to v_30 and v_900 to v_950.

When I run the labeling syntax I get a lot of warnings that variables are not present
while the variables which are present are labeled correctly.
I tried to solve it with SET MXWARNS = 1 which did not have an effect in SPSS 24, though.

I don't want to modify the syntax for every excerpt I get. 
So does anybody know a way to just suppress the thousands of warnings I get?

Thanks for any idea,
  Mario

Mario Giesel
Munich, Germany
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing warning messages

bdates

Mario,


There is a basic script with each version. In my installation it's 'C:\Program Files\IBM\SPSS\Statistics\25\Samples\Clean Viewer.wwd'. You can adjust the script to remove any of a number of items from the viewer, including warnings. My script reads:

intType = SPSSWarning
'strLabel = "Warnings"

You just have to find it in your installation/download, adjust it accordingly, then put at the end of your syntax.


Brian

From: SPSSX(r) Discussion <[hidden email]> on behalf of Rick Oliver <[hidden email]>
Sent: Monday, January 7, 2019 11:26:48 AM
To: [hidden email]
Subject: Re: Suppressing warning messages
 
In this context, I think OMS and Output Modify will do essentially the same thing. There is a great deal of overlap between them.

On Mon, Jan 7, 2019, 10:11 AM Mario Giesel <[hidden email]> wrote:

Thanks for your suggestions, Timothy & Kathy!

Changing viewer options only leads to hiding the content but not throwing it away.
The problem is that the messages jam my viewer. Each time it takes 20 seconds to delete the viewer content by Hand even if it's hidden.


OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS NOTES LOGS
  /DELETEOBJECT DELETE=YES.

does the job although it seems a bit artificial to me.
The time consuming production of warning messages could be hindered from the start.

Maybe there's sth. like in OMS where the viewer can temporarily be switched off?!

Thanks,
Mario


Mario Giesel
Munich, Germany


Am ‎Montag‎, ‎7‎. ‎Januar‎ ‎2019‎ ‎15‎:‎25‎:‎24‎ ‎CET hat Kathy Reinig <[hidden email]> Folgendes geschrieben:



OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS
  /DELETEOBJECT DELETE=YES.



Kathy Reinig
KJ Reinig Associates
quantitative research analysts

+1 978 544 2194  direct
+1 978 894 4808  cell


On Jan 7, 2019, at 4:21 AM, Mario Giesel <[hidden email]> wrote:

I have a huge syntax document that labels all variables of an origin csv file.
However, I'm only getting excerpts of the variables.

Say, 
the origin file has variables v_1 to v_12000 while
the excerpt file might have variables v_7 to v_30 and v_900 to v_950.

When I run the labeling syntax I get a lot of warnings that variables are not present
while the variables which are present are labeled correctly.
I tried to solve it with SET MXWARNS = 1 which did not have an effect in SPSS 24, though.

I don't want to modify the syntax for every excerpt I get. 
So does anybody know a way to just suppress the thousands of warnings I get?

Thanks for any idea,
  Mario

Mario Giesel
Munich, Germany
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing warning messages

Jon Peck
In reply to this post by Kathy Reinig
There is a big difference between OMS and OUTPUT MODIFY even though the ultimate result is almost the same.
OMS SELECT LOGS /DESTINATION VIEWER=NO prevents the log blocks from being created and sent to the Viewer, although there is no way to just suppress the error messages while letting the other LOG contents appear.  (The WARNINGS keyword does not apply to error messages in log blocks.)
OUTPUT MODIFY, on the other hand, kills off objects after they have been created in the Viewer, so the overhead of creating those objects still exists.

On Mon, Jan 7, 2019 at 9:27 AM Rick Oliver <[hidden email]> wrote:
In this context, I think OMS and Output Modify will do essentially the same thing. There is a great deal of overlap between them.

On Mon, Jan 7, 2019, 10:11 AM Mario Giesel <[hidden email]> wrote:

Thanks for your suggestions, Timothy & Kathy!

Changing viewer options only leads to hiding the content but not throwing it away.
The problem is that the messages jam my viewer. Each time it takes 20 seconds to delete the viewer content by Hand even if it's hidden.


OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS NOTES LOGS
  /DELETEOBJECT DELETE=YES.

does the job although it seems a bit artificial to me.
The time consuming production of warning messages could be hindered from the start.

Maybe there's sth. like in OMS where the viewer can temporarily be switched off?!

Thanks,
Mario


Mario Giesel
Munich, Germany


Am ‎Montag‎, ‎7‎. ‎Januar‎ ‎2019‎ ‎15‎:‎25‎:‎24‎ ‎CET hat Kathy Reinig <[hidden email]> Folgendes geschrieben:



OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS
  /DELETEOBJECT DELETE=YES.



Kathy Reinig
KJ Reinig Associates
quantitative research analysts

+1 978 544 2194  direct
+1 978 894 4808  cell


On Jan 7, 2019, at 4:21 AM, Mario Giesel <[hidden email]> wrote:

I have a huge syntax document that labels all variables of an origin csv file.
However, I'm only getting excerpts of the variables.

Say, 
the origin file has variables v_1 to v_12000 while
the excerpt file might have variables v_7 to v_30 and v_900 to v_950.

When I run the labeling syntax I get a lot of warnings that variables are not present
while the variables which are present are labeled correctly.
I tried to solve it with SET MXWARNS = 1 which did not have an effect in SPSS 24, though.

I don't want to modify the syntax for every excerpt I get. 
So does anybody know a way to just suppress the thousands of warnings I get?

Thanks for any idea,
  Mario

Mario Giesel
Munich, Germany
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing warning messages

Rick Oliver
In reply to this post by Kathy Reinig
Oh, right. SET ERRORS will suppress errors and warnings, even for dictionary commands (unlike SET MXWARNS). To make the SET specification temporary, you can use PRESERVE and RESTORE, as in:

preserve.
set errors=none.
***insert whatever commands***.
restore.

On Mon, Jan 7, 2019 at 11:45 AM Jon Peck <[hidden email]> wrote:
You can suppress errror and warning messages by running
SET ERRORS=NONE.
This will prevent these messages from being sent to the  Viewer.
Of course, it will also suppress messages that you might actually need to see.  You might want to consider using a little Python code to run just the labelling commands that apply to variables that actually exist in the active dataset.

On Mon, Jan 7, 2019 at 9:11 AM Mario Giesel <[hidden email]> wrote:

Thanks for your suggestions, Timothy & Kathy!

Changing viewer options only leads to hiding the content but not throwing it away.
The problem is that the messages jam my viewer. Each time it takes 20 seconds to delete the viewer content by Hand even if it's hidden.


OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS NOTES LOGS
  /DELETEOBJECT DELETE=YES.

does the job although it seems a bit artificial to me.
The time consuming production of warning messages could be hindered from the start.

Maybe there's sth. like in OMS where the viewer can temporarily be switched off?!

Thanks,
Mario


Mario Giesel
Munich, Germany


Am ‎Montag‎, ‎7‎. ‎Januar‎ ‎2019‎ ‎15‎:‎25‎:‎24‎ ‎CET hat Kathy Reinig <[hidden email]> Folgendes geschrieben:



OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS
  /DELETEOBJECT DELETE=YES.



Kathy Reinig
KJ Reinig Associates
quantitative research analysts

+1 978 544 2194  direct
+1 978 894 4808  cell


On Jan 7, 2019, at 4:21 AM, Mario Giesel <[hidden email]> wrote:

I have a huge syntax document that labels all variables of an origin csv file.
However, I'm only getting excerpts of the variables.

Say, 
the origin file has variables v_1 to v_12000 while
the excerpt file might have variables v_7 to v_30 and v_900 to v_950.

When I run the labeling syntax I get a lot of warnings that variables are not present
while the variables which are present are labeled correctly.
I tried to solve it with SET MXWARNS = 1 which did not have an effect in SPSS 24, though.

I don't want to modify the syntax for every excerpt I get. 
So does anybody know a way to just suppress the thousands of warnings I get?

Thanks for any idea,
  Mario

Mario Giesel
Munich, Germany
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing warning messages

Mario Giesel-2
I tried
SET ERRORS = NONE .
but it did not suppress the Viewer warnings (SPSS 24).

But okay, at least I know now that it is not possible to switch off Viewer production. Thanks for your suggestions, guys!

  Mario

Mario Giesel
Munich, Germany


Am ‎Montag‎, ‎7‎. ‎Januar‎ ‎2019‎ ‎19‎:‎10‎:‎42‎ ‎CET hat Rick Oliver <[hidden email]> Folgendes geschrieben:


Oh, right. SET ERRORS will suppress errors and warnings, even for dictionary commands (unlike SET MXWARNS). To make the SET specification temporary, you can use PRESERVE and RESTORE, as in:

preserve.
set errors=none.
***insert whatever commands***.
restore.

On Mon, Jan 7, 2019 at 11:45 AM Jon Peck <[hidden email]> wrote:
You can suppress errror and warning messages by running
SET ERRORS=NONE.
This will prevent these messages from being sent to the  Viewer.
Of course, it will also suppress messages that you might actually need to see.  You might want to consider using a little Python code to run just the labelling commands that apply to variables that actually exist in the active dataset.

On Mon, Jan 7, 2019 at 9:11 AM Mario Giesel <[hidden email]> wrote:

Thanks for your suggestions, Timothy & Kathy!

Changing viewer options only leads to hiding the content but not throwing it away.
The problem is that the messages jam my viewer. Each time it takes 20 seconds to delete the viewer content by Hand even if it's hidden.


OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS NOTES LOGS
  /DELETEOBJECT DELETE=YES.

does the job although it seems a bit artificial to me.
The time consuming production of warning messages could be hindered from the start.

Maybe there's sth. like in OMS where the viewer can temporarily be switched off?!

Thanks,
Mario


Mario Giesel
Munich, Germany


Am ‎Montag‎, ‎7‎. ‎Januar‎ ‎2019‎ ‎15‎:‎25‎:‎24‎ ‎CET hat Kathy Reinig <[hidden email]> Folgendes geschrieben:



OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS
  /DELETEOBJECT DELETE=YES.



Kathy Reinig
KJ Reinig Associates
quantitative research analysts

+1 978 544 2194  direct
+1 978 894 4808  cell


On Jan 7, 2019, at 4:21 AM, Mario Giesel <[hidden email]> wrote:

I have a huge syntax document that labels all variables of an origin csv file.
However, I'm only getting excerpts of the variables.

Say, 
the origin file has variables v_1 to v_12000 while
the excerpt file might have variables v_7 to v_30 and v_900 to v_950.

When I run the labeling syntax I get a lot of warnings that variables are not present
while the variables which are present are labeled correctly.
I tried to solve it with SET MXWARNS = 1 which did not have an effect in SPSS 24, though.

I don't want to modify the syntax for every excerpt I get. 
So does anybody know a way to just suppress the thousands of warnings I get?

Thanks for any idea,
  Mario

Mario Giesel
Munich, Germany
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing warning messages

Rick Oliver

Note that although SET ERRORS=NONE does suppress warnings for dictionary commands in the log in the Viewer, it apparently does not suppress them in the error pane of the Syntax Editor.

 

Sent from Mail for Windows 10

 

From: [hidden email]
Sent: Wednesday, January 9, 2019 10:48 AM
To: [hidden email]
Subject: Re: Suppressing warning messages

 

I am pretty sure that this works.  I tested it in V24.

 

set errors=none.

suppresses error messages that would appear in the log such as with the VARIABLE LABELS command.

Running

variable label fred 'abc'.

when there is no such variable did not produce a message.

 

Warnings that appear in their own block such as from

FREQUENCIES VARIABLES=fred.

are not suppressed by set errors=none, but they can be suppressed using OMS.

oms select warnings /destination viewer=no.

 

HTH,

Jon

 

 

 

On Wed, Jan 9, 2019 at 7:43 AM Mario Giesel <[hidden email]> wrote:

I tried

SET ERRORS = NONE .
but it did not suppress the Viewer warnings (SPSS 24).

 

But okay, at least I know now that it is not possible to switch off Viewer production. Thanks for your suggestions, guys!

 

  Mario

 

Mario Giesel

Munich, Germany

 

 

Am ‎Montag‎, ‎7‎. ‎Januar‎ ‎2019‎ ‎19‎:‎10‎:‎42‎ ‎CET hat Rick Oliver <[hidden email]> Folgendes geschrieben:

 

 

Oh, right. SET ERRORS will suppress errors and warnings, even for dictionary commands (unlike SET MXWARNS). To make the SET specification temporary, you can use PRESERVE and RESTORE, as in:

preserve.

set errors=none.

***insert whatever commands***.
restore.

 

On Mon, Jan 7, 2019 at 11:45 AM Jon Peck <[hidden email]> wrote:

You can suppress errror and warning messages by running

SET ERRORS=NONE.

This will prevent these messages from being sent to the  Viewer.

Of course, it will also suppress messages that you might actually need to see.  You might want to consider using a little Python code to run just the labelling commands that apply to variables that actually exist in the active dataset.

 

On Mon, Jan 7, 2019 at 9:11 AM Mario Giesel <[hidden email]> wrote:

 

Thanks for your suggestions, Timothy & Kathy!

 

Changing viewer options only leads to hiding the content but not throwing it away.
The problem is that the messages jam my viewer. Each time it takes 20 seconds to delete the viewer content by Hand even if it's hidden.

 

 

OUTPUT MODIFY
  /REPORT PRINTREPORT=NO
  /SELECT  WARNINGS NOTES LOGS
  /DELETEOBJECT DELETE=YES.

 

does the job although it seems a bit artificial to me.
The time consuming production of warning messages could be hindered from the start.

Maybe there's sth. like in OMS where the viewer can temporarily be switched off?!

 

Thanks,
Mario

 

 

Mario Giesel

Munich, Germany

 

 

Am ‎Montag‎, ‎7‎. ‎Januar‎ ‎2019‎ ‎15‎:‎25‎:‎24‎ ‎CET hat Kathy Reinig <[hidden email]> Folgendes geschrieben:

 

 

 

OUTPUT MODIFY

  /REPORT PRINTREPORT=NO

  /SELECT  WARNINGS

  /DELETEOBJECT DELETE=YES.

 

 

 

Kathy Reinig

KJ Reinig Associates

quantitative research analysts

 

+1 978 544 2194  direct

+1 978 894 4808  cell

 



On Jan 7, 2019, at 4:21 AM, Mario Giesel <[hidden email]> wrote:

 

I have a huge syntax document that labels all variables of an origin csv file.

However, I'm only getting excerpts of the variables.

 

Say, 

the origin file has variables v_1 to v_12000 while

the excerpt file might have variables v_7 to v_30 and v_900 to v_950.

 

When I run the labeling syntax I get a lot of warnings that variables are not present

while the variables which are present are labeled correctly.

I tried to solve it with SET MXWARNS = 1 which did not have an effect in SPSS 24, though.

 

I don't want to modify the syntax for every excerpt I get. 

So does anybody know a way to just suppress the thousands of warnings I get?

 

Thanks for any idea,

  Mario

 

Mario Giesel

Munich, Germany

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

 

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


 

--

Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


 

--

Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

 

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD