<?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: set and merge in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580282#M164814</link>
    <description>&lt;P&gt;Thank you all and have a nice weekend!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 21:44:25 GMT</pubDate>
    <dc:creator>Zhenmin</dc:creator>
    <dc:date>2019-08-09T21:44:25Z</dc:date>
    <item>
      <title>set and merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580124#M164762</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Two tales with 100 unique observations, how much observations after set? How much observation after merge? &lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 13:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580124#M164762</guid>
      <dc:creator>Zhenmin</dc:creator>
      <dc:date>2019-08-09T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: set and merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580128#M164764</link>
      <description>&lt;P&gt;well you don't tell very much.&lt;/P&gt;
&lt;P&gt;a set statement should give you 100.&lt;/P&gt;
&lt;P&gt;a merge statement will give you the number of obs that meet the by statement in you data merge.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580128#M164764</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-08-09T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: set and merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580182#M164783</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/284674"&gt;@Zhenmin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;Two tales with 100 unique observations, how much observations after set? How much observation after merge? &lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Actually there is insufficient information to answer this question without 1) the exact code used and 2) the data involved for the merge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider the following code:&lt;/P&gt;
&lt;PRE&gt;data junk;
  x=5;
run;

data example;
   set junk junk junk;
run;&lt;/PRE&gt;
&lt;P&gt;The data set Example has 3 records because the data set name Junk&amp;nbsp;is duplicated on the set the statement even though the set Junk only has one record.&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;PRE&gt;data example;
   set junk ;
   do i= 1 to 5;
      output;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;Has 5 records because the OUTPUT statement executes 5 times for each record in Junk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally other code in a data step could add or remove records.&lt;/P&gt;
&lt;P&gt;Merge without a BY would have 100 records. But if there is a BY statement you could have anywhere from 100 to 200 depending on the content of the data &lt;STRONG&gt;assuming&lt;/STRONG&gt; there are no record filters or anything to create additional records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 15:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580182#M164783</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-09T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: set and merge</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580282#M164814</link>
      <description>&lt;P&gt;Thank you all and have a nice weekend!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 21:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-and-merge/m-p/580282#M164814</guid>
      <dc:creator>Zhenmin</dc:creator>
      <dc:date>2019-08-09T21:44:25Z</dc:date>
    </item>
  </channel>
</rss>

