<?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 How to delete those observations of table A that are all contained in table B in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-those-observations-of-table-A-that-are-all/m-p/146156#M29102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I delete those observations in table A that are all contained in table B,that is, I don't want all those observations of table B to present in table A.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jan 2014 02:07:03 GMT</pubDate>
    <dc:creator>owenwqp1</dc:creator>
    <dc:date>2014-01-19T02:07:03Z</dc:date>
    <item>
      <title>How to delete those observations of table A that are all contained in table B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-those-observations-of-table-A-that-are-all/m-p/146156#M29102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I delete those observations in table A that are all contained in table B,that is, I don't want all those observations of table B to present in table A.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 02:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-those-observations-of-table-A-that-are-all/m-p/146156#M29102</guid>
      <dc:creator>owenwqp1</dc:creator>
      <dc:date>2014-01-19T02:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete those observations of table A that are all contained in table B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-those-observations-of-table-A-that-are-all/m-p/146157#M29103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the simplest way is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;create table C as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from A except all corr select * from B;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop table A;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 02:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-those-observations-of-table-A-that-are-all/m-p/146157#M29103</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-01-19T02:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete those observations of table A that are all contained in table B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-those-observations-of-table-A-that-are-all/m-p/146158#M29104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data step alternative:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;proc sort data=&lt;/TD&gt;&lt;TD&gt;table1;by _all_ ;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;proc sort data=&lt;/TD&gt;&lt;TD&gt;table2;by _all_ ; run;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;data table3;&lt;/P&gt;&lt;P&gt;merge table1(in=a) table2(in=b);&lt;/P&gt;&lt;P&gt;by _all_ ;&lt;/P&gt;&lt;P&gt;if a and not b;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 08:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-those-observations-of-table-A-that-are-all/m-p/146158#M29104</guid>
      <dc:creator>pradeepalankar</dc:creator>
      <dc:date>2014-01-19T08:44:49Z</dc:date>
    </item>
  </channel>
</rss>

