<?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 Problem getting data &amp;quot;depth level&amp;quot; in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-getting-data-quot-depth-level-quot/m-p/6331#M2498</link>
    <description>I ahve a dataset consisting of 9000+ staff members for which I have their staff ID and their manager's staff ID.  I want to be able to generate the "depth" down the staff tree for these users (eg there are four upward hops from me to the Group Chairman so I have a depth of four).  In addition I want to associate each staff member with their uber-manager (ie with a depth of one).&lt;BR /&gt;
&lt;BR /&gt;
Both problems seem to call for some sort of tre-walk macro but it's outwith my experience to write one and nothin on the SAS website seems to address the issue.  Closest I've seen is SUGI paper 87-28 but that's walking down an existing structure rather than up a virtual one.&lt;BR /&gt;
&lt;BR /&gt;
Anyone seen anything like this before?&lt;BR /&gt;
&lt;BR /&gt;
AxS</description>
    <pubDate>Fri, 11 Jan 2008 10:17:02 GMT</pubDate>
    <dc:creator>AxS</dc:creator>
    <dc:date>2008-01-11T10:17:02Z</dc:date>
    <item>
      <title>Problem getting data "depth level"</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-getting-data-quot-depth-level-quot/m-p/6331#M2498</link>
      <description>I ahve a dataset consisting of 9000+ staff members for which I have their staff ID and their manager's staff ID.  I want to be able to generate the "depth" down the staff tree for these users (eg there are four upward hops from me to the Group Chairman so I have a depth of four).  In addition I want to associate each staff member with their uber-manager (ie with a depth of one).&lt;BR /&gt;
&lt;BR /&gt;
Both problems seem to call for some sort of tre-walk macro but it's outwith my experience to write one and nothin on the SAS website seems to address the issue.  Closest I've seen is SUGI paper 87-28 but that's walking down an existing structure rather than up a virtual one.&lt;BR /&gt;
&lt;BR /&gt;
Anyone seen anything like this before?&lt;BR /&gt;
&lt;BR /&gt;
AxS</description>
      <pubDate>Fri, 11 Jan 2008 10:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-getting-data-quot-depth-level-quot/m-p/6331#M2498</guid>
      <dc:creator>AxS</dc:creator>
      <dc:date>2008-01-11T10:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data "depth level"</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-getting-data-quot-depth-level-quot/m-p/6332#M2499</link>
      <description>sounds like a good casebook example for the data step hash object. &lt;BR /&gt;
There will be some excellent examples among the SAS Samples : Go to  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; and navigate (left hand side) in "Knowledge Base" to "Samples &amp;amp; SAS Notes"&lt;BR /&gt;
&lt;BR /&gt;
Good Luck&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 11 Jan 2008 11:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-getting-data-quot-depth-level-quot/m-p/6332#M2499</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-11T11:46:25Z</dc:date>
    </item>
  </channel>
</rss>

