<?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 how can i merge in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12602#M1694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have dataset A with some repeated observations in ACCOUNTNO variable,dataset B also have duplicate observations ,boath datasets having common variable ACCOUNTNO .How can we merge boath datasets by removing duplicates using merge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2012 07:05:14 GMT</pubDate>
    <dc:creator>rawindar</dc:creator>
    <dc:date>2012-02-24T07:05:14Z</dc:date>
    <item>
      <title>how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12602#M1694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have dataset A with some repeated observations in ACCOUNTNO variable,dataset B also have duplicate observations ,boath datasets having common variable ACCOUNTNO .How can we merge boath datasets by removing duplicates using merge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 07:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12602#M1694</guid>
      <dc:creator>rawindar</dc:creator>
      <dc:date>2012-02-24T07:05:14Z</dc:date>
    </item>
    <item>
      <title>how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12603#M1695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not want duplicated accountno during merge, proc sort data=have nodupkey;by accountno;run;&lt;/P&gt;&lt;P&gt;or SQL can keep the accountno unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 07:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12603#M1695</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-02-24T07:21:18Z</dc:date>
    </item>
    <item>
      <title>how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12604#M1696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank..u but i want to write it using MERGE .It is better if you provide ans using MERGE .I have faced this ques in an interview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2012 12:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12604#M1696</guid>
      <dc:creator>rawindar</dc:creator>
      <dc:date>2012-02-25T12:02:54Z</dc:date>
    </item>
    <item>
      <title>how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12605#M1697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at: &lt;A href="http://www2.sas.com/proceedings/forum2008/081-2008.pdf"&gt;http://www2.sas.com/proceedings/forum2008/081-2008.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2012 14:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12605#M1697</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-25T14:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12606#M1698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;merge a b;&lt;/P&gt;&lt;P&gt;by accountno;&lt;/P&gt;&lt;P&gt;if first.accountno;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume in an interview situation you should also ask what's meant by duplicates - duplicate keys or duplicate rows (=all variables having the same values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code snippet is for duplicate rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 19:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12606#M1698</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-02-26T19:24:20Z</dc:date>
    </item>
    <item>
      <title>how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12607#M1699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; for ur reply.yes i asked duplicates occured in data values of Accountno variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 12:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12607#M1699</guid>
      <dc:creator>rawindar</dc:creator>
      <dc:date>2012-02-27T12:30:53Z</dc:date>
    </item>
    <item>
      <title>how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12608#M1700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank ...u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 12:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12608#M1700</guid>
      <dc:creator>rawindar</dc:creator>
      <dc:date>2012-02-27T12:31:32Z</dc:date>
    </item>
    <item>
      <title>how can i merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12609#M1701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are asked that question in an interview (or real life) you need to respond with some questions so you can figure out what they want.&lt;/P&gt;&lt;P&gt;Do they want to match every obversation in A with every observation in B that has the same account number?&lt;/P&gt;&lt;P&gt;What about account numbers that only occur in A or B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do they want to pair them up in order within the account numbers?&amp;nbsp; &lt;/P&gt;&lt;P&gt;What happens if there are not the same number of observations in both A and B for a particular account number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the answers to those questions you can begin to build a strategy for "merging" them.&lt;/P&gt;&lt;P&gt;But in general SQL will be much more useful language for coding that than a data step using the MERGE statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 13:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-can-i-merge/m-p/12609#M1701</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-02-27T13:16:48Z</dc:date>
    </item>
  </channel>
</rss>

