<?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: SQL and HASH in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392954#M94606</link>
    <description>Oh.&lt;BR /&gt;Then I assume the SQL part of the question would resolve to - use LEFT/RIGHT JOIN...ON... in SAS (ANSI) SQL.</description>
    <pubDate>Mon, 04 Sep 2017 10:14:23 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-09-04T10:14:23Z</dc:date>
    <item>
      <title>SQL and HASH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392879#M94586</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can somebody assist me .....How following query can be translated into either&amp;nbsp;&lt;SPAN&gt;SAS HASH code (preferred)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or SAS QUERY code? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a given SQL NATIVE Query ( note that there is + sign in a where clause):&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SELECT DISTINCT A1.acod as acode,&lt;BR /&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;A1.descp as FDESC,&lt;BR /&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;catx(' - ', B1.scod,B1.tcod) as stcode &lt;BR /&gt;FROM X X0,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A A1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B B1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C C1&lt;/P&gt;
&lt;P&gt;WHERE &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A1.OFFICEID(+) &amp;nbsp;= X0.officeid &lt;BR /&gt; AND B1.STATUSCD(+) = x0.STATUSCD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND C1.Post(+) = X0.Post&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND C1.Pre(+) &amp;nbsp;= X0.Pre&lt;/P&gt;
&lt;P&gt;AND X0.Pre(+) &amp;nbsp;= C1.Pre&lt;/P&gt;
&lt;P&gt;AND X0.Post(+) = C1.Post&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2017 21:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392879#M94586</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2017-09-03T21:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL and HASH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392880#M94587</link>
      <description>Giving you a SAS data step hash program tight will probably not help you to understand how to do it yourself next time. I suggest that you study it, give it a try, and then come back with more specific questions. &lt;BR /&gt;&lt;BR /&gt;This SQL of yours, what does the + sign do/mean?</description>
      <pubDate>Sun, 03 Sep 2017 21:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392880#M94587</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-09-03T21:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL and HASH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392881#M94588</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;: I think the (+) &amp;nbsp;indicates a left or right&amp;nbsp;outer join depending upon whether it is on the left or right variable (see:&amp;nbsp;&lt;A href="https://chartio.com/resources/tutorials/left-and-right-joins-using-the-plus-sign-in-oracle/" target="_blank"&gt;https://chartio.com/resources/tutorials/left-and-right-joins-using-the-plus-sign-in-oracle/&lt;/A&gt; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2017 22:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392881#M94588</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-09-03T22:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL and HASH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392954#M94606</link>
      <description>Oh.&lt;BR /&gt;Then I assume the SQL part of the question would resolve to - use LEFT/RIGHT JOIN...ON... in SAS (ANSI) SQL.</description>
      <pubDate>Mon, 04 Sep 2017 10:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-and-HASH/m-p/392954#M94606</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-09-04T10:14:23Z</dc:date>
    </item>
  </channel>
</rss>

