<?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 Proc SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/449250#M113044</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 datasets (work.one and work.two) and I need to append the data to one another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if a record_id is in work.one and work.two I don't want it to merge, just those records_Id where there not in both tables so I have a unique list of accounts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be done using PROC SQL please? I did think a UNION would work bit not 100%&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 09:29:57 GMT</pubDate>
    <dc:creator>KC_16</dc:creator>
    <dc:date>2018-03-28T09:29:57Z</dc:date>
    <item>
      <title>Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/449250#M113044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 datasets (work.one and work.two) and I need to append the data to one another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if a record_id is in work.one and work.two I don't want it to merge, just those records_Id where there not in both tables so I have a unique list of accounts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this be done using PROC SQL please? I did think a UNION would work bit not 100%&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 09:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/449250#M113044</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2018-03-28T09:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/449253#M113045</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*selecting ONE-TWO UNION TWO-ONE;
proc sql;
create table result as
	select * from 
	(
		(select * from work.one where record_id not in (select distinct record_id from work.two)
		 union
		 select * from work.two where record_id not in (select distinct record_id from work.one)
		)
	)
;
quit;	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You had not made your self very clear, let us know if this helped.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 09:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/449253#M113045</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-03-28T09:59:04Z</dc:date>
    </item>
  </channel>
</rss>

