<?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: delete observation from two tables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/delete-observation-from-two-tables/m-p/200269#M50013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have two values of A=3 and B=5 in table 1 do you want all of them gone?&lt;/P&gt;&lt;P&gt;Does the final order of the results matter?&lt;/P&gt;&lt;P&gt;If the answer to the first question is yes and no to the second then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select * from table1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select * from table2&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will work.&lt;/P&gt;&lt;P&gt;If you have lots of other variables then additional work will be needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2015 20:33:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-04-20T20:33:39Z</dc:date>
    <item>
      <title>delete observation from two tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-observation-from-two-tables/m-p/200268#M50012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables. I want to delete from table A observations of table B&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Table 1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Table 2&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Table want &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 18:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-observation-from-two-tables/m-p/200268#M50012</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2015-04-20T18:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: delete observation from two tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-observation-from-two-tables/m-p/200269#M50013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have two values of A=3 and B=5 in table 1 do you want all of them gone?&lt;/P&gt;&lt;P&gt;Does the final order of the results matter?&lt;/P&gt;&lt;P&gt;If the answer to the first question is yes and no to the second then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select * from table1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select * from table2&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will work.&lt;/P&gt;&lt;P&gt;If you have lots of other variables then additional work will be needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 20:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-observation-from-two-tables/m-p/200269#M50013</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-20T20:33:39Z</dc:date>
    </item>
  </channel>
</rss>

