<?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: SAS EXCEL retrieving data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669468#M200830</link>
    <description>&lt;P&gt;hmm this will only work if all sublevel have the same length but they dont.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ill give a more detailed example :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0116&lt;/P&gt;
&lt;P&gt;01161&lt;/P&gt;
&lt;P&gt;01161A&lt;/P&gt;
&lt;P&gt;01161A1&lt;/P&gt;
&lt;P&gt;01161A2&lt;/P&gt;
&lt;P&gt;01161B&lt;/P&gt;
&lt;P&gt;01161B1&lt;/P&gt;
&lt;P&gt;01161C&lt;/P&gt;
&lt;P&gt;01161D&lt;/P&gt;
&lt;P&gt;01162&lt;/P&gt;
&lt;P&gt;01163&lt;/P&gt;
&lt;P&gt;01163A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on. With you solutions i would only keep : 01161A1, 01161A2,01161B1. But i actually i would like to have those but also : 01161C, 01161D, 01162, 01163A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(for sas your sql could be copied right away ^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 14:25:57 GMT</pubDate>
    <dc:creator>BartDekeyser</dc:creator>
    <dc:date>2020-07-15T14:25:57Z</dc:date>
    <item>
      <title>SAS EXCEL retrieving data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669458#M200826</link>
      <description>&lt;P&gt;Hi all ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have the following Excel&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0116&lt;/P&gt;
&lt;P&gt;01161&lt;/P&gt;
&lt;P&gt;01161A&lt;/P&gt;
&lt;P&gt;01161A1&lt;/P&gt;
&lt;P&gt;01161A2&lt;/P&gt;
&lt;TABLE width="80"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80"&gt;01161B&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;01161B1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on. How can i manipulate my data to only keep the lowest sublevel meaning for this case :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;01161A1&lt;/P&gt;
&lt;P&gt;01161A2&lt;/P&gt;
&lt;P&gt;01161B1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The file contains 1000+ .&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 14:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669458#M200826</guid>
      <dc:creator>BartDekeyser</dc:creator>
      <dc:date>2020-07-15T14:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EXCEL retrieving data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669462#M200827</link>
      <description>&lt;P&gt;I have no idea how you do that in Excel, but in SAS you can use this SQL step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select *
  from have
  having length(string) = max(length(string))
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 14:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669462#M200827</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-15T14:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EXCEL retrieving data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669468#M200830</link>
      <description>&lt;P&gt;hmm this will only work if all sublevel have the same length but they dont.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ill give a more detailed example :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0116&lt;/P&gt;
&lt;P&gt;01161&lt;/P&gt;
&lt;P&gt;01161A&lt;/P&gt;
&lt;P&gt;01161A1&lt;/P&gt;
&lt;P&gt;01161A2&lt;/P&gt;
&lt;P&gt;01161B&lt;/P&gt;
&lt;P&gt;01161B1&lt;/P&gt;
&lt;P&gt;01161C&lt;/P&gt;
&lt;P&gt;01161D&lt;/P&gt;
&lt;P&gt;01162&lt;/P&gt;
&lt;P&gt;01163&lt;/P&gt;
&lt;P&gt;01163A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on. With you solutions i would only keep : 01161A1, 01161A2,01161B1. But i actually i would like to have those but also : 01161C, 01161D, 01162, 01163A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(for sas your sql could be copied right away ^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 14:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669468#M200830</guid>
      <dc:creator>BartDekeyser</dc:creator>
      <dc:date>2020-07-15T14:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EXCEL retrieving data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669506#M200850</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/949"&gt;@BartDekeyser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hmm this will only work if all sublevel have the same length but they dont.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ill give a more detailed example :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0116&lt;/P&gt;
&lt;P&gt;01161&lt;/P&gt;
&lt;P&gt;01161A&lt;/P&gt;
&lt;P&gt;01161A1&lt;/P&gt;
&lt;P&gt;01161A2&lt;/P&gt;
&lt;P&gt;01161B&lt;/P&gt;
&lt;P&gt;01161B1&lt;/P&gt;
&lt;P&gt;01161C&lt;/P&gt;
&lt;P&gt;01161D&lt;/P&gt;
&lt;P&gt;01162&lt;/P&gt;
&lt;P&gt;01163&lt;/P&gt;
&lt;P&gt;01163A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on. With you solutions i would only keep : 01161A1, 01161A2,01161B1. But i actually i would like to have those but also : 01161C, 01161D, 01162, 01163A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(for sas your sql could be copied right away ^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My first thought with the original post was "This is not a clearly defined "lowest level"." And your expanded reference data confirms that. Which indicates to me that you have multiple values in a single variable and may perhaps need to parse out the base value, first sublevel, second sublevel (and as many identifiable sublevels as you may have into separate variables (temporarily) to process and then select.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-EXCEL-retrieving-data/m-p/669506#M200850</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-15T15:18:52Z</dc:date>
    </item>
  </channel>
</rss>

