<?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 mutiple (8500) Excel Files from one folder to SAS OnDemand for Academics in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/731849#M9914</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm struggling with importing multiple Excel Files into SAS onDemand for Academics.&lt;/P&gt;&lt;P&gt;I'm using the Robintrack dataset and havelaready unpacked it on my PC. Now I have 8597 Excel files in my PC folder, which are all named according to the respective stock.&lt;/P&gt;&lt;P&gt;Can someone help me to write an Macro to import all Excel files into one SAS table with an additional Variable which has the stockname in it?&lt;BR /&gt;To import one file is not a problem but I'm not able to import all files at once in a macro, too save them all in one SAS table and to give assigne them a new variable which has the corresponding stock name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="student12345678_1-1617793269930.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57038iEE79DD6CE9CDDCB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="student12345678_1-1617793269930.png" alt="student12345678_1-1617793269930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="student12345678_0-1617793222382.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57037i47E668454313C7D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="student12345678_0-1617793222382.png" alt="student12345678_0-1617793222382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 11:02:44 GMT</pubDate>
    <dc:creator>student12345678</dc:creator>
    <dc:date>2021-04-07T11:02:44Z</dc:date>
    <item>
      <title>Import mutiple (8500) Excel Files from one folder to SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/731849#M9914</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm struggling with importing multiple Excel Files into SAS onDemand for Academics.&lt;/P&gt;&lt;P&gt;I'm using the Robintrack dataset and havelaready unpacked it on my PC. Now I have 8597 Excel files in my PC folder, which are all named according to the respective stock.&lt;/P&gt;&lt;P&gt;Can someone help me to write an Macro to import all Excel files into one SAS table with an additional Variable which has the stockname in it?&lt;BR /&gt;To import one file is not a problem but I'm not able to import all files at once in a macro, too save them all in one SAS table and to give assigne them a new variable which has the corresponding stock name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="student12345678_1-1617793269930.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57038iEE79DD6CE9CDDCB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="student12345678_1-1617793269930.png" alt="student12345678_1-1617793269930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="student12345678_0-1617793222382.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57037i47E668454313C7D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="student12345678_0-1617793222382.png" alt="student12345678_0-1617793222382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 11:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/731849#M9914</guid>
      <dc:creator>student12345678</dc:creator>
      <dc:date>2021-04-07T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import mutiple (8500) Excel Files from one folder to SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/731866#M9916</link>
      <description>&lt;P&gt;You can use the upload functionality of SAS Studio to upload the files in batches (I managed A to F in one swoop, but it takes TIME!), after which you can run a single data step to read the files:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data robin;
length fname $200 listing $4;
infile '$HOME/robin/*.csv' filename=fname dlm="," dsd;
input@;
if index(_infile_,"timestamp") = 0;
input timestamp :e8601dt19. listed;
format timestamp e8601dt19.;
listing = scan(scan(fname,-1,"/"),1,".");
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I put all the csv files in a folder called robin located directly in my Home on SAS ODA.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 11:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/731866#M9916</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-07T11:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Import mutiple (8500) Excel Files from one folder to SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/731875#M9919</link>
      <description>&lt;P&gt;Was already on the way to &lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="de" data-phrase-index="0"&gt;&lt;SPAN&gt;lose consciousness&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, but then i realized that you don't have excel-files, but csv-files. Do yourself a favor and switch the default application used to open csv-files to a text-editor, that way you will see what's really in the files and not what Excel things you should see.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 12:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/731875#M9919</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-04-07T12:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Import mutiple (8500) Excel Files from one folder to SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/732010#M9923</link>
      <description>Thanks a lot!!!</description>
      <pubDate>Wed, 07 Apr 2021 18:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/732010#M9923</guid>
      <dc:creator>student12345678</dc:creator>
      <dc:date>2021-04-07T18:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import mutiple (8500) Excel Files from one folder to SAS OnDemand for Academics</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/732073#M9924</link>
      <description>&lt;P&gt;You can also tell Windows that you want it to show you the real filenames instead of stripping off the extension.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 19:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Import-mutiple-8500-Excel-Files-from-one-folder-to-SAS-OnDemand/m-p/732073#M9924</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-04-07T19:55:30Z</dc:date>
    </item>
  </channel>
</rss>

