<?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 Import and Append from Multiple Folders. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-and-Append-from-Multiple-Folders/m-p/378814#M91103</link>
    <description>&lt;P&gt;I have a bunch of .dat daily files that I am trying to turn into historical data sets.&amp;nbsp; The issue for me is that each of these files is in a daily folder--for example, the files for July 24th are in a folder called 20170724, the files for July 23rd are in a folder called 20170723, etc. &amp;nbsp;There are several files in each folder: AA.dat, BB.dat, CC.dat, DD.dat, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These files go back 10 months, so the backlog is pretty big.&amp;nbsp; What I do not have time to do is import these files folder by folder.&lt;/P&gt;&lt;P&gt;I’d like to import and append the daily files to one another to create a month-end data set and a yearly data set.&amp;nbsp; For example, a monthly AA and a YTD AA, a monthly BB and a YTD BB, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas as to how I can do this?&amp;nbsp; Any help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 23:13:14 GMT</pubDate>
    <dc:creator>yeppy12</dc:creator>
    <dc:date>2017-07-24T23:13:14Z</dc:date>
    <item>
      <title>Import and Append from Multiple Folders.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-Append-from-Multiple-Folders/m-p/378814#M91103</link>
      <description>&lt;P&gt;I have a bunch of .dat daily files that I am trying to turn into historical data sets.&amp;nbsp; The issue for me is that each of these files is in a daily folder--for example, the files for July 24th are in a folder called 20170724, the files for July 23rd are in a folder called 20170723, etc. &amp;nbsp;There are several files in each folder: AA.dat, BB.dat, CC.dat, DD.dat, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These files go back 10 months, so the backlog is pretty big.&amp;nbsp; What I do not have time to do is import these files folder by folder.&lt;/P&gt;&lt;P&gt;I’d like to import and append the daily files to one another to create a month-end data set and a yearly data set.&amp;nbsp; For example, a monthly AA and a YTD AA, a monthly BB and a YTD BB, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas as to how I can do this?&amp;nbsp; Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 23:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-Append-from-Multiple-Folders/m-p/378814#M91103</guid>
      <dc:creator>yeppy12</dc:creator>
      <dc:date>2017-07-24T23:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import and Append from Multiple Folders.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-Append-from-Multiple-Folders/m-p/378826#M91105</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Import_all_files_one_type" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Import_all_files_one_type&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't actually recommend my macro above for text files, but the process is the same. There are more efficient codes in various places if you search.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The process is basically, create a list of file by traversing the directorie and then import all at once.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 01:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-Append-from-Multiple-Folders/m-p/378826#M91105</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-25T01:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import and Append from Multiple Folders.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-Append-from-Multiple-Folders/m-p/379194#M91248</link>
      <description>Thanks, Reeza, for the help. I will take a look at your macro above and will also keep searching for other code to assist me.</description>
      <pubDate>Tue, 25 Jul 2017 19:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-Append-from-Multiple-Folders/m-p/379194#M91248</guid>
      <dc:creator>yeppy12</dc:creator>
      <dc:date>2017-07-25T19:56:23Z</dc:date>
    </item>
  </channel>
</rss>

