<?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: Org chart, hash join? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Org-chart-hash-join/m-p/175030#M33621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ballard, yes I've thought of that, but in some instances all I have is the managerid, and will need their name. I should modify the example above, but tough to do as I'm on my phone now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 17:34:24 GMT</pubDate>
    <dc:creator>Putt_Ka</dc:creator>
    <dc:date>2014-10-07T17:34:24Z</dc:date>
    <item>
      <title>Org chart, hash join?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Org-chart-hash-join/m-p/175028#M33619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings again all, I'm sure someone has come across this in the past, but I need to create an org chart, and I'm new to the idea of hash joins.&amp;nbsp; I basically want to create a column based on another column so it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;LastName&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Manager&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ManagerID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Roberts&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;456&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Roberts&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;456&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Williams&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Roberts&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;456&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Daniels&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;777&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Williams&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Cook&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;383&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Williams&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create the "Manager" column based on the "manager ID" column (EG look up the manager name for the specific ID).&amp;nbsp; On top of this this list will need to be updates, with other data coming in eventually.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is creating a hash the best way to do this?&amp;nbsp; I've looked a ton online for answers, and I'm confused as to whether a simple Merge "By" statement would work here, or if I should self(inner) join, or hash would work better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in pointing me in the right direction would be hugely appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Org-chart-hash-join/m-p/175028#M33619</guid>
      <dc:creator>Putt_Ka</dc:creator>
      <dc:date>2014-10-07T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Org chart, hash join?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Org-chart-hash-join/m-p/175029#M33620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the ManagerId then maybe:&lt;/P&gt;&lt;P&gt;&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 a.*, b.LastName as Manager&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have as a left join have as b on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.managerid=b.id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 17:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Org-chart-hash-join/m-p/175029#M33620</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-07T17:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Org chart, hash join?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Org-chart-hash-join/m-p/175030#M33621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ballard, yes I've thought of that, but in some instances all I have is the managerid, and will need their name. I should modify the example above, but tough to do as I'm on my phone now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 17:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Org-chart-hash-join/m-p/175030#M33621</guid>
      <dc:creator>Putt_Ka</dc:creator>
      <dc:date>2014-10-07T17:34:24Z</dc:date>
    </item>
  </channel>
</rss>

