<?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 Query regarding merging two datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Query-regarding-merging-two-datasets/m-p/354881#M273982</link>
    <description>&lt;P&gt;I have two datasets bsas1 and bsas2. I want to merge these datasets by name, therefore i used the command 'by name' but it didn't worked although when i run command 'by id' it worked. Why is it so ?.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the attached jpg screenshot.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13766i792CFC42C706C9EB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Q2.jpg" title="Q2.jpg" /&gt;</description>
    <pubDate>Mon, 01 May 2017 08:57:14 GMT</pubDate>
    <dc:creator>manish_1</dc:creator>
    <dc:date>2017-05-01T08:57:14Z</dc:date>
    <item>
      <title>Query regarding merging two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-regarding-merging-two-datasets/m-p/354881#M273982</link>
      <description>&lt;P&gt;I have two datasets bsas1 and bsas2. I want to merge these datasets by name, therefore i used the command 'by name' but it didn't worked although when i run command 'by id' it worked. Why is it so ?.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the attached jpg screenshot.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13766i792CFC42C706C9EB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Q2.jpg" title="Q2.jpg" /&gt;</description>
      <pubDate>Mon, 01 May 2017 08:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-regarding-merging-two-datasets/m-p/354881#M273982</guid>
      <dc:creator>manish_1</dc:creator>
      <dc:date>2017-05-01T08:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding merging two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-regarding-merging-two-datasets/m-p/354883#M273983</link>
      <description>&lt;P&gt;Because your data is not sorted by name, but by ID. Run the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = bsas1;
	by name;
run;

proc sort data = bsas2;
	by name;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and try again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 08:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-regarding-merging-two-datasets/m-p/354883#M273983</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-05-01T08:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding merging two datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Query-regarding-merging-two-datasets/m-p/354884#M273984</link>
      <description>&lt;P&gt;A datastep merge with a by statement expects that the datasets are sorted in the order specified by the by statement. Use proc sort to achieve that.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 09:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Query-regarding-merging-two-datasets/m-p/354884#M273984</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-01T09:00:53Z</dc:date>
    </item>
  </channel>
</rss>

