<?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: Variation of a question related to &amp;quot;ERROR: Sort execution failure.&amp;quot; in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Variation-of-a-question-related-to-quot-ERROR-Sort-execution/m-p/609496#M17899</link>
    <description>&lt;P&gt;To get a unique row in the table you've displayed you need to take SYMPTOM1_TYPE_ID into account too. Otherwise for every row in your admission table where&amp;nbsp;&lt;SPAN&gt;SYMPTOM1_TRXN_ID = 1&lt;/SPAN&gt; you will get 25 symptom rows being joined in. Do you really want that?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 19:29:43 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-12-04T19:29:43Z</dc:date>
    <item>
      <title>Variation of a question related to "ERROR: Sort execution failure."</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variation-of-a-question-related-to-quot-ERROR-Sort-execution/m-p/609486#M17897</link>
      <description>&lt;P&gt;Long story short, I keep getting the "ERROR: Sort execution failure" when running the code below. I know why I'm running into the issue, but can't wrap my head around how to fix it. The problem is that SYMPTOM1_TRXN_ID has many unique values that match to the SYMPTOM1_OTHER column (as you see in a quick snapshot of the table below).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My code:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table SYMPTOMS as &lt;BR /&gt;select a.ADMISSION_ID, b.SYMPTOM1_TYPE_ID, b.SYMPTOM1_OTHER, b.SEVERITY_LEVEL_ID&lt;BR /&gt;from open_adms8 a left join cairs.SYMPTOM1_TRXN b on a.SYMPTOM1_TRXN_ID = b.SYMPTOM1_TRXN_ID;&lt;BR /&gt;quit; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a quick example: you can see that when SYMPTOM1_TRXN_ID 1 or 2 and they both have SYMPTOM1_OTHER = Suicidal ideation.... How do I handle this if I need to match two tables on SYMPTOM1_TRXN_ID because that is the identifier to join the tables?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 592px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34452iE569521126DF58C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variation-of-a-question-related-to-quot-ERROR-Sort-execution/m-p/609486#M17897</guid>
      <dc:creator>accintron</dc:creator>
      <dc:date>2019-12-04T19:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variation of a question related to "ERROR: Sort execution failure."</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variation-of-a-question-related-to-quot-ERROR-Sort-execution/m-p/609496#M17899</link>
      <description>&lt;P&gt;To get a unique row in the table you've displayed you need to take SYMPTOM1_TYPE_ID into account too. Otherwise for every row in your admission table where&amp;nbsp;&lt;SPAN&gt;SYMPTOM1_TRXN_ID = 1&lt;/SPAN&gt; you will get 25 symptom rows being joined in. Do you really want that?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variation-of-a-question-related-to-quot-ERROR-Sort-execution/m-p/609496#M17899</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-04T19:29:43Z</dc:date>
    </item>
  </channel>
</rss>

