<?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: Unique rows between two files in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78919#M7773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can mark Linlin as "correct" and, if desired, I'd be quite happy with a "helpful" thank you.&amp;nbsp; More importantly, glad to see that you achieved what you needed to accomplish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 15:16:43 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-01-18T15:16:43Z</dc:date>
    <item>
      <title>Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78905#M7759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get the rows that are NOT in both datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table libname.file_discrepancies as select *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from libname.file_a t1, libname.file_b t2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where GEID.t1 NE GEID.t2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************&lt;/P&gt;&lt;P&gt;However, I get this error which I cannot figure out.&amp;nbsp; GEID exists as numeric in both datasets.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Unresolved reference to table/correlation name GEID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Unresolved reference to table/correlation name GEID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 00:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78905#M7759</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T00:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78906#M7760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="754751" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: I don't think your code will work or do what you want, but the error you are getting is because you have the roles reversed between file reference and variable.&amp;nbsp; They should be something like t1.geid, not the way you have them (reversed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversely, something like the following might achieve what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data file_a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input geid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data file_b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input geid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table work.file_discrepancies as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (select geid from work.file_a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select geid from work.file_b)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; union&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (select geid from work.file_b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select geid from work.file_a)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 00:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78906#M7760</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-01-18T00:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78907#M7761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or by merging:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=file_a; by geid;&lt;/P&gt;&lt;P&gt;proc sort data=file_b; by geid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge file_a(in=a) file_b(in=b);&lt;/P&gt;&lt;P&gt;&amp;nbsp; by geid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if a and b then delete;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 00:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78907#M7761</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-01-18T00:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78908#M7762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used your code, which was easier for me to understand considering my SAS knowledge level.&amp;nbsp; Anyway, I got this error:&amp;nbsp; ERROR: BY variables are not properly sorted on data set JEN2.COMBINED_GDW_PRIOR_A. (which is file_b in your code above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: Arial;"&gt;The error pointed out to one specific employee.&amp;nbsp; However, when I look at the data row, it looks right.&amp;nbsp; What does a=1 b=1 mean in the error below?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;a=1 b=1 GEID=1010353890 SOEID=SK53890 Full_Name=K,Suresh......(there are 135 columns/variables).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 104183 observations read from the data set JEN1.COMBINED_GDW_CURRENT_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 35472 observations read from the data set JEN2.COMBINED_GDW_PRIOR_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;WARNING: The data set JEN1.COMBINED_GDW_DISCREPANCIES may be incomplete. When this step was stopped there were 71599 observations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and 135 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;WARNING: Data set JEN1.COMBINED_GDW_DISCREPANCIES was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78908#M7762</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78909#M7763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur - what does the "cards" mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input geid;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code.&amp;nbsp; No errors, but the resutls is only the GEID variable.&amp;nbsp; I want all the columns/variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say if the GEID matches between the two files but other variables do not match, would changing the "select GEID" in your proc sql to "select *" give me only the rows where all the variables do not match?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78909#M7763</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T14:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78910#M7764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="754751" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: Linlin's suggestion included first sorting the two files by geid.&amp;nbsp; Did you do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a and b, in Linlin's code are boolean variables, indicating if a record came from one, the other, or both files.&amp;nbsp; They were set with the in= option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A value of 1 indicates that the record existed in that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your question about my code, cards (otherwise known as datalines) is simply a way of entering data into SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78910#M7764</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-01-18T14:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78911#M7765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you please post your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78911#M7765</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-01-18T14:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78912#M7766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about that.&amp;nbsp; Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=jen1.combined_gdw_current_a; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; geid;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=jen2.combined_gdw_prior; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; geid;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; jen1.combined_gdw_discrepancies;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;merge&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; jen1.combined_gdw_current_a(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=a) jen2.combined_gdw_prior_a(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;=b);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; geid;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; a &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; b &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78912#M7766</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T14:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78913#M7767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first column is GEID.&amp;nbsp; So I don't understand what the a= and b= mean?&amp;nbsp; Is it saying that GEID is the 3 variable for this particular employee?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a=1 b=1 GEID=1010353890&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78913#M7767</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T14:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78914#M7768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second file is not the one that you sorted.&amp;nbsp; You sorted &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;jen2.combined_gdw_prior&lt;/SPAN&gt;, but used &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;jen2.combined_gdw_prior&lt;/SPAN&gt;_a.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78914#M7768</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-01-18T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78915#M7769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for being all over the place.&amp;nbsp; I tried Arthur's advice and it worked.&amp;nbsp; Now, what if I want for two fields (called GEID and GOC) to match.&amp;nbsp; So, I am looking for a dataset where both fields do not match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; jen3.combined_gdw_discrepancies_test &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; GEID &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; jen1.combined_gdw_current_a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;except&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; GEID&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; jen2.combined_gdw_prior_a)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;union&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; GEID&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; jen2.combined_gdw_prior_a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;except&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; GEID&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; jen1.combined_gdw_current_a)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78915#M7769</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78916#M7770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second file is not the one that you sorted.&amp;nbsp; You sorted &lt;SPAN style="background-color: #ffffff; font-family: 'Courier New'; color: #000000;"&gt;jen2.combined_gdw_prior&lt;/SPAN&gt;, but used &lt;SPAN style="background-color: #ffffff; font-family: 'Courier New'; color: #000000;"&gt;jen2.combined_gdw_prior&lt;/SPAN&gt;_a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for catching that Arthur! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78916#M7770</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78917#M7771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as the files don't contain duplicate records in both files (i.e., resulting in a many-to-many match), I'd just use a variant of Linlin's code.&amp;nbsp; i.e.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: 'Courier New'; color: navy; background-color: white;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="font-style: inherit; font-family: 'Courier New'; color: navy; background-color: white;"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt;=jen1.combined_gdw_current_a; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; geid goc; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt; &lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: 'Courier New'; color: navy; background-color: white;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="font-style: inherit; font-family: 'Courier New'; color: navy; background-color: white;"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt;=jen2.combined_gdw_prior; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; geid goc; &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: 'Courier New'; color: navy; background-color: white;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt; &lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: 'Courier New'; color: navy; background-color: white;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; jen1.combined_gdw_discrepancies;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt; &lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;merge&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; jen1.combined_gdw_current_a(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt;=a) jen2.combined_gdw_prior(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt;=b);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt; &lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; geid goc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt; &lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; a &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; b &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt; delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt; &lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: 'Courier New'; color: navy; background-color: white;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; background-color: white; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class=" jive-acclaim-likelink " data-command="like" data-object-id="150893" data-object-type="2" href="https://communities.sas.com/message/150900" id="jive-acclaim-likelink-2-150893-" style="font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;Re: Unique rows between two files&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78917#M7771</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-01-18T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78918#M7772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked!&amp;nbsp; How do I mark both you and Linlin with the correct answer for this question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Linlin and Arthur!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78918#M7772</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2013-01-18T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78919#M7773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can mark Linlin as "correct" and, if desired, I'd be quite happy with a "helpful" thank you.&amp;nbsp; More importantly, glad to see that you achieved what you needed to accomplish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78919#M7773</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-01-18T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unique rows between two files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78920#M7774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="754751" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: Hopefully, someone more versed in SQL, than me, can show you how this code SHOULD be written.&amp;nbsp; However, the following two sets of code do the two tasks that you asked about.&amp;nbsp; The good news is that, while probably doing it in a more round about way than necessary, both will work regardless of whether there are any many-to-many situations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*create two test files*/&lt;/P&gt;&lt;P&gt;data file_a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input geid goc x y z;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 1 1 2 3&lt;/P&gt;&lt;P&gt;2 1 1 2 3&lt;/P&gt;&lt;P&gt;3 1 1 2 3&lt;/P&gt;&lt;P&gt;4 1 1 2 3&lt;/P&gt;&lt;P&gt;5 1 1 2 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data file_b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input geid goc a b c;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 1 4 5 6&lt;/P&gt;&lt;P&gt;2 2 4 5 6&lt;/P&gt;&lt;P&gt;7 1 4 5 6&lt;/P&gt;&lt;P&gt;8 1 4 5 6&lt;/P&gt;&lt;P&gt;9 1 4 5 6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table work.met_condition as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (select geid from work.file_a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select geid from work.file_b)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; union&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (select geid from work.file_b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select geid from work.file_a)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table work.all_combined as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from work.file_a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; union&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from work.file_b&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table work.file_discrepancies (drop=b_:) as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from work.met_condition a,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; work.all_combined (rename=(geid=b_geid)) b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a.geid=b.b_geid&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table work.met_condition as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (select geid,goc from work.file_a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select geid,goc from work.file_b)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; union&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; (select geid,goc from work.file_b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select geid,goc from work.file_a)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table work.all_combined as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from work.file_a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; union&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from work.file_b&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table work.file_discrepancies2 (drop=b_:) as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from work.met_condition a,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; work.all_combined (rename=(geid=b_geid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goc=b_goc)) b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a.geid=b.b_geid and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.goc=b.b_goc&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unique-rows-between-two-files/m-p/78920#M7774</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-01-18T15:41:11Z</dc:date>
    </item>
  </channel>
</rss>

