<?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 datasets when both ID variables don't match in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723273#M224413</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_0-1614804070137.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55410iD09C10BD072FC001/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_0-1614804070137.png" alt="lrackley_0-1614804070137.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_1-1614804091464.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55411i0B526900750C9958/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_1-1614804091464.png" alt="lrackley_1-1614804091464.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi, I want to combine these datasets but if I join on SOC and PT, I only get respiratory disorders and I need infections and infestations and general disorders as well. Can anyone help? I tried Cartesian join but that didn't produce what I wanted either.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you do not show anything labeled SOC or PT then I don't see how you combine them on those. I also don't see any "infections" or "infestations" so that is bit problematic as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So perhaps show the code you used to attempt this "combine". And the contents of both of those examples look to be the same, so wondering what any combining is supposed to yield.&lt;/P&gt;
&lt;P&gt;Can you show what you expect the result to look like?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 21:04:41 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-03-03T21:04:41Z</dc:date>
    <item>
      <title>Combine datasets when both ID variables don't match</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723267#M224411</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_0-1614804070137.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55410iD09C10BD072FC001/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_0-1614804070137.png" alt="lrackley_0-1614804070137.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_1-1614804091464.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55411i0B526900750C9958/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_1-1614804091464.png" alt="lrackley_1-1614804091464.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi, I want to combine these datasets but if I join on SOC and PT, I only get respiratory disorders and I need infections and infestations and general disorders as well. Can anyone help? I tried Cartesian join but that didn't produce what I wanted either.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723267#M224411</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-03-03T20:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Combine datasets when both ID variables don't match</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723273#M224413</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_0-1614804070137.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55410iD09C10BD072FC001/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_0-1614804070137.png" alt="lrackley_0-1614804070137.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_1-1614804091464.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55411i0B526900750C9958/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_1-1614804091464.png" alt="lrackley_1-1614804091464.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi, I want to combine these datasets but if I join on SOC and PT, I only get respiratory disorders and I need infections and infestations and general disorders as well. Can anyone help? I tried Cartesian join but that didn't produce what I wanted either.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you do not show anything labeled SOC or PT then I don't see how you combine them on those. I also don't see any "infections" or "infestations" so that is bit problematic as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So perhaps show the code you used to attempt this "combine". And the contents of both of those examples look to be the same, so wondering what any combining is supposed to yield.&lt;/P&gt;
&lt;P&gt;Can you show what you expect the result to look like?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 21:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723273#M224413</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-03T21:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Combine datasets when both ID variables don't match</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723280#M224415</link>
      <description>&lt;P&gt;There is a label on the SOC variable but is the one that says System Organ Class. I think I found a solution for now. But if someone has something more elegant, I would love to know. This is my ugly solution. I don't like it because I have to output 3 datasets and stack them in another dataset. However, I need to make this pretty quickly so going to continue with it for now I guess.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_0-1614805860841.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55414i6693068F40D3A4F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_0-1614805860841.png" alt="lrackley_0-1614805860841.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_1-1614805893339.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55415i3631399FD05C3A42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_1-1614805893339.png" alt="lrackley_1-1614805893339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 21:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723280#M224415</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-03-03T21:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combine datasets when both ID variables don't match</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723290#M224418</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;There is a label on the SOC variable but is the one that says System Organ Class. I think I found a solution for now. But if someone has something more elegant, I would love to know. This is my ugly solution. I don't like it because I have to output 3 datasets and stack them in another dataset. However, I need to make this pretty quickly so going to continue with it for now I guess.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_0-1614805860841.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55414i6693068F40D3A4F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_0-1614805860841.png" alt="lrackley_0-1614805860841.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lrackley_1-1614805893339.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55415i3631399FD05C3A42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lrackley_1-1614805893339.png" alt="lrackley_1-1614805893339.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you do not show any labels for any variable it is hardly to be expected for anyone to know where to find SOC or a possibly mythical System Organ Class.&lt;/P&gt;
&lt;P&gt;We can only use the information you show us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you look &lt;STRONG&gt;closely&lt;/STRONG&gt; at your original post there is no variable AETERM_SOC that you are using in that code. Or the Label. Or the "System Organ Class".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PLEASE post code as text in a code or text box opened on the forum with the &amp;lt;/&amp;gt; or "running man" icons. Pictures are hard to read, cannot be copied and pasted into an editor to run code or edit to show suggested changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 21:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723290#M224418</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-03T21:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combine datasets when both ID variables don't match</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723434#M224490</link>
      <description>&lt;P&gt;Yeah, well I actually ended up doing something in SQL. I'm sorry that you have such a problem with my post but my organization uses Citrix and it is much faster to upload pictures. Also, you can click on pictures to enlarge them. Getting my code out of SAS requires using an SFTP twice. Anyway, I found a solution on my own.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 12:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-datasets-when-both-ID-variables-don-t-match/m-p/723434#M224490</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-03-04T12:37:23Z</dc:date>
    </item>
  </channel>
</rss>

