<?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 to save the base table only records in data set after PROC compare process? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/how-to-save-the-base-table-only-records-in-data-set-after-PROC/m-p/408136#M12446</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2017 19:22:28 GMT</pubDate>
    <dc:creator>Jade_SAS</dc:creator>
    <dc:date>2017-10-27T19:22:28Z</dc:date>
    <item>
      <title>how to save the base table only records in data set after PROC compare process?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/how-to-save-the-base-table-only-records-in-data-set-after-PROC/m-p/407704#M12432</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I did proc compare and from the below coding I get the records in the base table1 only, my question is these records only show in the resuts tab in SAS, how I can save these records in SAS data set? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;compare&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;base&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = table1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;compare&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = table2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;listbase&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ID&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; record_ID;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jade&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 16:06:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/how-to-save-the-base-table-only-records-in-data-set-after-PROC/m-p/407704#M12432</guid>
      <dc:creator>Jade_SAS</dc:creator>
      <dc:date>2017-10-26T16:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to save the base table only records in data set after PROC compare process?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/how-to-save-the-base-table-only-records-in-data-set-after-PROC/m-p/407938#M12437</link>
      <description>&lt;P&gt;Try something like this example where OUTNOEQUAL&amp;nbsp;tells Proc Compare to only output records which are not equal and&amp;nbsp;OUTBASE to only output records from the base table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
	if name="Alice" then age=99;
run;

proc compare base=sashelp.class compare=class listbase out=diffs outnoequal outbase;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Oct 2017 07:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/how-to-save-the-base-table-only-records-in-data-set-after-PROC/m-p/407938#M12437</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-10-27T07:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to save the base table only records in data set after PROC compare process?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/how-to-save-the-base-table-only-records-in-data-set-after-PROC/m-p/408136#M12446</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 19:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/how-to-save-the-base-table-only-records-in-data-set-after-PROC/m-p/408136#M12446</guid>
      <dc:creator>Jade_SAS</dc:creator>
      <dc:date>2017-10-27T19:22:28Z</dc:date>
    </item>
  </channel>
</rss>

