<?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 Merge datasets without losing information in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Merge-datasets-without-losing-information/m-p/756290#M30061</link>
    <description>&lt;P&gt;Suppose my datasets are organized like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariko5797_0-1627065540572.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61640i72F5A943248046DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariko5797_0-1627065540572.png" alt="mariko5797_0-1627065540572.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to combine the information from dataset 1 and dataset 2 such that my columns are DISEASE, BMIGRP, COUNT_A, and COUNT_B.&lt;/P&gt;&lt;P&gt;I don't want to lose any information. That is, I want to maintain all the DISEASES granted they exist in at least one of the datasets like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariko5797_1-1627065764454.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61641i65BB6EEE65276070/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariko5797_1-1627065764454.png" alt="mariko5797_1-1627065764454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an efficient way to achieve this? Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 18:43:41 GMT</pubDate>
    <dc:creator>mariko5797</dc:creator>
    <dc:date>2021-07-23T18:43:41Z</dc:date>
    <item>
      <title>Merge datasets without losing information</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merge-datasets-without-losing-information/m-p/756290#M30061</link>
      <description>&lt;P&gt;Suppose my datasets are organized like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariko5797_0-1627065540572.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61640i72F5A943248046DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariko5797_0-1627065540572.png" alt="mariko5797_0-1627065540572.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to combine the information from dataset 1 and dataset 2 such that my columns are DISEASE, BMIGRP, COUNT_A, and COUNT_B.&lt;/P&gt;&lt;P&gt;I don't want to lose any information. That is, I want to maintain all the DISEASES granted they exist in at least one of the datasets like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariko5797_1-1627065764454.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61641i65BB6EEE65276070/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariko5797_1-1627065764454.png" alt="mariko5797_1-1627065764454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an efficient way to achieve this? Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 18:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merge-datasets-without-losing-information/m-p/756290#M30061</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2021-07-23T18:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merge datasets without losing information</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merge-datasets-without-losing-information/m-p/756294#M30062</link>
      <description>&lt;P&gt;Just the MERGE statement.&lt;/P&gt;
&lt;P&gt;Just make sure the data sets are sorted first. They do not appear sorted in your photographs.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  merge dataset1 dateset2;
  by disease bmigrp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 19:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merge-datasets-without-losing-information/m-p/756294#M30062</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-23T19:04:53Z</dc:date>
    </item>
  </channel>
</rss>

