<?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: Merging two data sets and dups in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144965#M28916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither one of those worked actually. a=0 gives me fewer records than I started with and Art the above gives me the same record set that I am getting (216,720).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep the original record set in the first data set as is (the same ones and no new records) and just add the two columns from the second record set onto the end of the records in the first data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 19:25:47 GMT</pubDate>
    <dc:creator>Paul_NYS</dc:creator>
    <dc:date>2014-12-10T19:25:47Z</dc:date>
    <item>
      <title>Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144956#M28907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;I am merging two data sets using the below data step. I am seeing some instances of duplicate records being created and I don't understand why it is happening. Is there something I forgot in this or is there a reason why this is happening? I am also including an example of the dup records. One other item, is there a way to create a de-duped dataset? Using proc sort with nodupkey and dupout would require using all the variables in the dataset, I assume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data permev1;&lt;/P&gt;&lt;P&gt;merge perm_ev (in=a) nyccust (keep=entity_id DispOutcome1 DispoDate);&lt;/P&gt;&lt;P&gt;if a;&lt;/P&gt;&lt;P&gt;by entity_id;&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;&lt;STRONG&gt;Dup records:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;21560655&amp;nbsp;&amp;nbsp;&amp;nbsp; 222238&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 14JUL2011&amp;nbsp;&amp;nbsp;&amp;nbsp; 12SEP2011&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; 12SEP2011&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; 14JUL2011&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; 25APR2012&amp;nbsp;&amp;nbsp;&amp;nbsp; 25APR2012&amp;nbsp;&amp;nbsp;&amp;nbsp; XRF&amp;nbsp;&amp;nbsp;&amp;nbsp; Permanency Tracking Completed&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; XUK&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; PERM ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; XUK&amp;nbsp;&amp;nbsp;&amp;nbsp; 30JAN2014&amp;nbsp;&amp;nbsp;&amp;nbsp; Order of Custody Continued&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;21560655&amp;nbsp;&amp;nbsp;&amp;nbsp; 222238&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 14JUL2011&amp;nbsp;&amp;nbsp;&amp;nbsp; 12SEP2011&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; 12SEP2011&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; 14JUL2011&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; 25APR2012&amp;nbsp;&amp;nbsp;&amp;nbsp; 25APR2012&amp;nbsp;&amp;nbsp;&amp;nbsp; XRF&amp;nbsp;&amp;nbsp;&amp;nbsp; Permanency Tracking Completed&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;&lt;TD&gt; XUK&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; PERM ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; XUK&amp;nbsp;&amp;nbsp;&amp;nbsp; 30JAN2014&amp;nbsp;&amp;nbsp;&amp;nbsp; Order of Custody Continued&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 16:16:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144956#M28907</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T16:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144957#M28908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you expecting your output data set to only have one record for each in the perm_ev set?&lt;/P&gt;&lt;P&gt;If so, look for duplicates of the by variable in either of the datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 16:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144957#M28908</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-12-10T16:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144958#M28909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, the situation is more complex if you received the following note in your log: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"NOTE: MERGE statement has more than one data set &lt;/SPAN&gt;with repeats of BY values." The key question is whether you have duplicates in one of your files, or in both of your files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want duplicate records in either file, then I would just sort each file, using the nodupkey option, only including your one by variable in the by statement (i.e., &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px; background-color: #ffffff;"&gt;by entity_id; ), and using an out= option so that you don't destroy the original data files. No need to include a dupout option, as you appear to only want a de-duped merged file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 16:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144958#M28909</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-10T16:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144959#M28910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, not necessarily. There are duplicates in the original perm_ev set, which is fine. The problem is that the perm_ev data set has 216,526 records and the merged data set permev1 has 216,720 records. Records like the one I already included were created in the merge. I just want to add the above two columns (DispOutcome1 DispoDate) from nyccust to the records in the perm_ev data set and that's it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 17:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144959#M28910</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144960#M28911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dups in the original perm_ev data set are fine, so de-duping the original data set would not help. I just want to add the two new columns based on the entity_id 'by' variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 17:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144960#M28911</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T17:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144961#M28912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So suppose your first data set contains 2 observations for an entity_id, and your second data set contains 4 observations for the same entity_id.&amp;nbsp; What would you like the outcome to be?&amp;nbsp; (Your answer actually determines the proper programming tools to use.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 17:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144961#M28912</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-12-10T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144962#M28913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 obs. to match the original data set. I really just need to add two columns (DispOutcome1 DispoDate) from the second data set (nyccust) to the records in the first (perm_ev) as they exist in the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 18:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144962#M28913</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T18:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144963#M28914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you just want 2 that match and you don't care which 2, you could add a single statement to the end of your DATA step:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 18:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144963#M28914</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-12-10T18:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144964#M28915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul: I disagree!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the following represents your problem and solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input id x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;2 2&lt;/P&gt;&lt;P&gt;3 3&lt;/P&gt;&lt;P&gt;4 4&lt;/P&gt;&lt;P&gt;4 4.5&lt;/P&gt;&lt;P&gt;5 5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input id y;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 11&lt;/P&gt;&lt;P&gt;2 21&lt;/P&gt;&lt;P&gt;3 31&lt;/P&gt;&lt;P&gt;4 41&lt;/P&gt;&lt;P&gt;4 41.5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dontwant;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge have1 (in=ina) have2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by id;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ina;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have2 out=need2 nodupkey;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by id;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge have1 (in=ina) need2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by id;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ina;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 18:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144964#M28915</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-10T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144965#M28916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither one of those worked actually. a=0 gives me fewer records than I started with and Art the above gives me the same record set that I am getting (216,720).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep the original record set in the first data set as is (the same ones and no new records) and just add the two columns from the second record set onto the end of the records in the first data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 19:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144965#M28916</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T19:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144966#M28917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually shocked that a=0 didn't work.&amp;nbsp; When you say "fewer records" do you mean fewer than 216,526?&amp;nbsp; I would love to see the log (both the programming statements and the notes that SAS generates).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 20:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144966#M28917</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-12-10T20:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144967#M28918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Astounding&lt;/P&gt;&lt;P&gt;I re-ran it with the above to generate the log actually and when I checked the second time, it did produce the correct number of records. So thanks a lot for that! The first time I was looking at the wrong data set apparently. EG sometimes displays different data sets when finishing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to verify though that in using this method the records from the first record set (perm_ev) are the ones that remain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran two types of merges to check (between perm_ev and the merged data set) and both seem to indicate that the 216,526 that in the merged file are the ones that are in the first perm_ev data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 20:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144967#M28918</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T20:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144968#M28919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the records from the first data set are the ones that remain.&amp;nbsp; (Unless there is something truly bizarre happening, such as the variable "a" being part of the second data set and its value overwriting the value produced by in=a.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the unusual case where an entity_id appears twice in the first data set and four times in the second data set, only the first two matching records from the second data set would be used. The third and fourth would just be deleted by "if a=0;"&amp;nbsp; When there are multiple matching records in the second data set, as long as you don't care which matching record is used, this solution would work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 20:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144968#M28919</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-12-10T20:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144969#M28920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree! And &lt;A __default_attr="5253" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s suggested solution would be a lot quicker to run than the one I had suggested. Anything more than &lt;A __default_attr="5253" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s suggested code would only be needed if DispOutcome1 and DispoDate have to be assigned differently when there are duplicate records in either file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 21:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144969#M28920</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-10T21:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144970#M28921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The match from the second data set doesn't really matter in this case. So thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 21:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144970#M28921</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T21:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two data sets and dups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144971#M28922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will keep that in mind. Thanks Art.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 21:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-data-sets-and-dups/m-p/144971#M28922</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2014-12-10T21:14:24Z</dc:date>
    </item>
  </channel>
</rss>

