<?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: Combine two data sets in data  step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-two-data-sets-in-data-step/m-p/50098#M10457</link>
    <description>Hello Richard_hu2003,&lt;BR /&gt;
&lt;BR /&gt;
Yes, the answer is A. It is impossible to be D because with this type of merging the combine dataset should contain only three observations for COMMON='A'. The rules of merging are quite complicated and explained in SAS help and relevant books..&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,</description>
    <pubDate>Wed, 13 Apr 2011 21:04:30 GMT</pubDate>
    <dc:creator>SPR</dc:creator>
    <dc:date>2011-04-13T21:04:30Z</dc:date>
    <item>
      <title>Combine two data sets in data  step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-two-data-sets-in-data-step/m-p/50097#M10456</link>
      <description>Given the following SAS data sets ONE and TWO: The following&lt;BR /&gt;
SAS DATA step is submitted:&lt;BR /&gt;
data combine;&lt;BR /&gt;
merge one two;&lt;BR /&gt;
by common;&lt;BR /&gt;
run;&lt;BR /&gt;
Which one of the following represents the data values stored&lt;BR /&gt;
in data set COMBINE?&lt;BR /&gt;
ONE&lt;BR /&gt;
OBS COMMON X&lt;BR /&gt;
1 A 10&lt;BR /&gt;
2 A 13&lt;BR /&gt;
3 A 14&lt;BR /&gt;
4 B 9&lt;BR /&gt;
5 C 8&lt;BR /&gt;
6 C 14&lt;BR /&gt;
TWO&lt;BR /&gt;
OBS COMMON Y&lt;BR /&gt;
1 A 1&lt;BR /&gt;
2 A 3&lt;BR /&gt;
3 B 4&lt;BR /&gt;
4 B 2&lt;BR /&gt;
5 C 5&lt;BR /&gt;
(A) OBS COMMON X Y&lt;BR /&gt;
1 A 10 1&lt;BR /&gt;
2 A 13 3&lt;BR /&gt;
3 A 14 3&lt;BR /&gt;
4 B 9 4&lt;BR /&gt;
5 B 9 2&lt;BR /&gt;
6 C 8 5&lt;BR /&gt;
7 C 14 5&lt;BR /&gt;
(B) OBS COMMON X Y&lt;BR /&gt;
1 A 10 1&lt;BR /&gt;
2 A 13 3&lt;BR /&gt;
3 B 9 4&lt;BR /&gt;
4 C 8 5&lt;BR /&gt;
(C) OBS COMMON X Y&lt;BR /&gt;
1 A 10 1&lt;BR /&gt;
2 A 13 3&lt;BR /&gt;
3 B 14 4&lt;BR /&gt;
4 B 9 2&lt;BR /&gt;
5 C 8 5&lt;BR /&gt;
(D) OBS COMMON X Y&lt;BR /&gt;
1 A 10 1&lt;BR /&gt;
2 A 13 1&lt;BR /&gt;
3 A 14 1&lt;BR /&gt;
4 A 10 3&lt;BR /&gt;
5 A 13 3&lt;BR /&gt;
6 A 14 3&lt;BR /&gt;
7 B 9 4&lt;BR /&gt;
8 B 9 2&lt;BR /&gt;
9 C 8 5&lt;BR /&gt;
10 C 14 5&lt;BR /&gt;
&lt;BR /&gt;
Answer is (A). But why not (D)? Thanks.</description>
      <pubDate>Wed, 13 Apr 2011 20:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-two-data-sets-in-data-step/m-p/50097#M10456</guid>
      <dc:creator>richard_hu2003</dc:creator>
      <dc:date>2011-04-13T20:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two data sets in data  step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-two-data-sets-in-data-step/m-p/50098#M10457</link>
      <description>Hello Richard_hu2003,&lt;BR /&gt;
&lt;BR /&gt;
Yes, the answer is A. It is impossible to be D because with this type of merging the combine dataset should contain only three observations for COMMON='A'. The rules of merging are quite complicated and explained in SAS help and relevant books..&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,</description>
      <pubDate>Wed, 13 Apr 2011 21:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-two-data-sets-in-data-step/m-p/50098#M10457</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-04-13T21:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two data sets in data  step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-two-data-sets-in-data-step/m-p/50099#M10458</link>
      <description>Thank you so much! SPR</description>
      <pubDate>Wed, 13 Apr 2011 21:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-two-data-sets-in-data-step/m-p/50099#M10458</guid>
      <dc:creator>richard_hu2003</dc:creator>
      <dc:date>2011-04-13T21:08:35Z</dc:date>
    </item>
  </channel>
</rss>

