<?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: Listing All Sub Folders In a Directory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Listing-All-Sub-Folders-In-a-Directory/m-p/638744#M189957</link>
    <description>&lt;H1 class="xisDoc-title"&gt;&lt;FONT size="2"&gt;Example 2: List All Files within a Directory Including Subdirectories&lt;/FONT&gt;&lt;/H1&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0js70lrkxo6uvn1fl4a5aafnlgt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0js70lrkxo6uvn1fl4a5aafnlgt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;FONT size="2"&gt;Sample&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;24820:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;Creating a Directory Listing Using SAS for Windows&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/24/820.html" target="_blank"&gt;https://support.sas.com/kb/24/820.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/100491"&gt;@GeorgeBonanza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Someone is running data for me and saving the output in a sub folder of&amp;nbsp;a Yearly&amp;nbsp;directory.&amp;nbsp; For example, I have a folder called "2020" and the data that is being run for me gets output to&amp;nbsp;subfolders called "Jan062020", "Jan132020",&amp;nbsp;"Jan202020", etc. and within each of these folders&amp;nbsp;are&amp;nbsp;a couple of datasets that&amp;nbsp;always has the same names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'd like to do is&amp;nbsp;create a list of these sub folders that I can then loop over and pull in the datasets into an aggregated file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've spent some time&amp;nbsp;Googling but can't find anything that fits my inquiry so I am hoping to find assistance here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your time.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 17:03:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-04-09T17:03:36Z</dc:date>
    <item>
      <title>Listing All Sub Folders In a Directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Listing-All-Sub-Folders-In-a-Directory/m-p/638729#M189951</link>
      <description>&lt;P&gt;Someone is running data for me and saving the output in a sub folder of&amp;nbsp;a Yearly&amp;nbsp;directory.&amp;nbsp; For example, I have a folder called "2020" and the data that is being run for me gets output to&amp;nbsp;subfolders called "Jan062020", "Jan132020",&amp;nbsp;"Jan202020", etc. and within each of these folders&amp;nbsp;are&amp;nbsp;a couple of datasets that&amp;nbsp;always has the same names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like to do is&amp;nbsp;create a list of these sub folders that I can then loop over and pull in the datasets into an aggregated file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've spent some time&amp;nbsp;Googling but can't find anything that fits my inquiry so I am hoping to find assistance here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 16:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Listing-All-Sub-Folders-In-a-Directory/m-p/638729#M189951</guid>
      <dc:creator>GeorgeBonanza</dc:creator>
      <dc:date>2020-04-09T16:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Listing All Sub Folders In a Directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Listing-All-Sub-Folders-In-a-Directory/m-p/638740#M189955</link>
      <description>&lt;P&gt;Can you use x-commands in the sas-session?&lt;/P&gt;
&lt;P&gt;If yes, you could use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename dirs pipe 'dir "YOUR_PATH" /a:d /b';

data dirs;
  length dirName $ 200;
  infile dirs;
  input dirName;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't have access to sas right now, so the code is untested.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 16:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Listing-All-Sub-Folders-In-a-Directory/m-p/638740#M189955</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-04-09T16:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Listing All Sub Folders In a Directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Listing-All-Sub-Folders-In-a-Directory/m-p/638744#M189957</link>
      <description>&lt;H1 class="xisDoc-title"&gt;&lt;FONT size="2"&gt;Example 2: List All Files within a Directory Including Subdirectories&lt;/FONT&gt;&lt;/H1&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0js70lrkxo6uvn1fl4a5aafnlgt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0js70lrkxo6uvn1fl4a5aafnlgt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;FONT size="2"&gt;Sample&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;24820:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;Creating a Directory Listing Using SAS for Windows&lt;/FONT&gt;&lt;/H2&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/24/820.html" target="_blank"&gt;https://support.sas.com/kb/24/820.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/100491"&gt;@GeorgeBonanza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Someone is running data for me and saving the output in a sub folder of&amp;nbsp;a Yearly&amp;nbsp;directory.&amp;nbsp; For example, I have a folder called "2020" and the data that is being run for me gets output to&amp;nbsp;subfolders called "Jan062020", "Jan132020",&amp;nbsp;"Jan202020", etc. and within each of these folders&amp;nbsp;are&amp;nbsp;a couple of datasets that&amp;nbsp;always has the same names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'd like to do is&amp;nbsp;create a list of these sub folders that I can then loop over and pull in the datasets into an aggregated file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've spent some time&amp;nbsp;Googling but can't find anything that fits my inquiry so I am hoping to find assistance here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your time.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Listing-All-Sub-Folders-In-a-Directory/m-p/638744#M189957</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-09T17:03:36Z</dc:date>
    </item>
  </channel>
</rss>

