<?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 Proc SQL Left Inner Join in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156865#M30635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there a way to do a left inner join, and the table produced from this procedure is not sorted.&amp;nbsp; It would be great to keep it in the order before the merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2015 14:41:42 GMT</pubDate>
    <dc:creator>dtchoi86</dc:creator>
    <dc:date>2015-02-06T14:41:42Z</dc:date>
    <item>
      <title>Proc SQL Left Inner Join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156865#M30635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there a way to do a left inner join, and the table produced from this procedure is not sorted.&amp;nbsp; It would be great to keep it in the order before the merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156865#M30635</guid>
      <dc:creator>dtchoi86</dc:creator>
      <dc:date>2015-02-06T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Left Inner Join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156866#M30636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the other table is not so big (fits into memory), you can write a data step and use a hash object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156866#M30636</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-06T14:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Left Inner Join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156867#M30637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign and order variable before merging:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table WANT as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.*,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B.X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select *,MONOTONIC() as ORD from HAVE1) A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left inner join HAVE2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.IDVAR1=B.IDVAR2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by&amp;nbsp; ORD;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to add though, if you want proper ordering setup variables for order before merging as "the order it was before merging" isn't a logical/replicate able statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156867#M30637</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-02-06T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Left Inner Join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156868#M30638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize for the last entry.&amp;nbsp; I didn't know the code you posted was the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 16:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Left-Inner-Join/m-p/156868#M30638</guid>
      <dc:creator>dtchoi86</dc:creator>
      <dc:date>2015-02-06T16:22:01Z</dc:date>
    </item>
  </channel>
</rss>

