<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I suppress the Proc Compare log warning message for 0 observations in each data set? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-suppress-the-Proc-Compare-log-warning-message-for-0/m-p/906093#M83177</link>
    <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/326171"&gt;@Sarah-R&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please have a look at this &lt;A href="http://support.sas.com/kb/24/487.html" target="_blank"&gt;http://support.sas.com/kb/24/487.html&lt;/A&gt; &lt;BR /&gt;As&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13728"&gt;@SASJedi&lt;/a&gt; suggested you may forward the log&amp;nbsp; output to an external file.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 19:44:51 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2023-12-04T19:44:51Z</dc:date>
    <item>
      <title>How do I suppress the Proc Compare log warning message for 0 observations in each data set?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-suppress-the-Proc-Compare-log-warning-message-for-0/m-p/903419#M83121</link>
      <description>&lt;P&gt;When running a Proc Compare, I get the warning message:&amp;nbsp; &lt;FONT color="#339966"&gt;"WARNING: No matching observations were found."&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to suppress this log message?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The BASE and COMPARE data sets both have 0 observations each, but they do have similar columns and column attributes.&amp;nbsp; I am interested in producing a Proc Compare output, but, also, have no warning message, at the same time.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 07:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-suppress-the-Proc-Compare-log-warning-message-for-0/m-p/903419#M83121</guid>
      <dc:creator>Sarah-R</dc:creator>
      <dc:date>2023-11-16T07:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I suppress the Proc Compare log warning message for 0 observations in each data set?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-suppress-the-Proc-Compare-log-warning-message-for-0/m-p/903483#M83122</link>
      <description>&lt;P&gt;There is no PROC COMPARE or SAS System option I am aware of that can suppress printing WARNING or ERROR messages to the log.&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;suggested reviewing &lt;A href="https://support.sas.com/kb/24/487.html" target="_self"&gt;SAS Usage Note 24487: Warning messages in the SAS® log cannot be suppressed&lt;/A&gt;. For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table table1 like sashelp.cars(keep=Make--MSRP);
create table table2 like sashelp.cars(keep=Make--Origin Invoice);
quit;
proc compare base=table1 compare=table2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS Log:&lt;/P&gt;
&lt;PRE&gt;54   proc compare base=table1 compare=table2;
NOTE: Writing HTML Body file: sashtml7.htm
55   run;

NOTE: No observations in data set WORK.TABLE1.
NOTE: No observations in data set WORK.TABLE2.
WARNING: No matching observations were found.
NOTE: There were 0 observations read from the data set WORK.TABLE1.
NOTE: There were 0 observations read from the data set WORK.TABLE2.
NOTE: PROCEDURE COMPARE used (Total process time):
      real time           0.57 seconds
      cpu time            0.25 seconds
&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE summary="Page Layout" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;PRE class="batch"&gt;The COMPARE Procedure                                                                                 
Comparison of WORK.TABLE1 with WORK.TABLE2                                                            
(Method=EXACT)                                                                                        
                                                                                                      
Data Set Summary                                                                                      
                                                                                                      
Dataset               Created          Modified  NVar    NObs                                         
                                                                                                      
WORK.TABLE1  16NOV23:07:22:23  16NOV23:07:22:23     6       0                                         
WORK.TABLE2  16NOV23:07:22:23  16NOV23:07:22:23     5       0                                         
                                                                                                      
                                                                                                      
Variables Summary                                                                                     
                                                                                                      
Number of Variables in Common: 4.                                                                     
Number of Variables in WORK.TABLE1 but not in WORK.TABLE2: 2.                                         
Number of Variables in WORK.TABLE2 but not in WORK.TABLE1: 1.                                         
&lt;/PRE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="branch"&gt;To temporarily re-direct the log output using PROC PRINTTO (also suppressing all of the other log information generated by PROC COMPARE). For example:&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log=_temporary_;
run;

proc compare base=table1 compare=table2;
run;

proc printto;
run;&lt;/CODE&gt;&lt;/PRE&gt;
you get the same results, but the log is much more sparse:&lt;/DIV&gt;
&lt;PRE&gt;59   proc printto log=_temporary_;
60   run;

NOTE: PROCEDURE PRINTTO used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 21:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-suppress-the-Proc-Compare-log-warning-message-for-0/m-p/903483#M83122</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2023-12-04T21:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I suppress the Proc Compare log warning message for 0 observations in each data set?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-suppress-the-Proc-Compare-log-warning-message-for-0/m-p/906093#M83177</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/326171"&gt;@Sarah-R&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please have a look at this &lt;A href="http://support.sas.com/kb/24/487.html" target="_blank"&gt;http://support.sas.com/kb/24/487.html&lt;/A&gt; &lt;BR /&gt;As&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13728"&gt;@SASJedi&lt;/a&gt; suggested you may forward the log&amp;nbsp; output to an external file.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 19:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-suppress-the-Proc-Compare-log-warning-message-for-0/m-p/906093#M83177</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-12-04T19:44:51Z</dc:date>
    </item>
  </channel>
</rss>

