<?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: How To Import Multiple Excel Files Into SAS As Separate Tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864698#M341454</link>
    <description>&lt;P&gt;If you're very new to SAS and this is a one off task then you'll be quickest to use the Studio or EG import Wizard and do it one by one. Won't take very long.&lt;/P&gt;
&lt;P&gt;If you want to learn how this can be done via code then look-up Proc Import in the SAS docu.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Proc Import make things work for a single Excel and then just copy paste the code just changing the path the Excel you want to import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't use code samples as your starting point that got %macro code in it. If you're very new to SAS then it's just too early/too much to get into this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the things that's important: Where is your SAS running. NOT the client (Studio/EG) but the server to which you connect to as that's where the SAS code executes and from where the Excels must be accessible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...If you use the Studio/EG import wizard then the Excels can be local to your client and Studio/Excel will do the upload to the server side for you.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 21:36:28 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2023-03-16T21:36:28Z</dc:date>
    <item>
      <title>How To Import Multiple Excel Files Into SAS As Separate Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864646#M341443</link>
      <description>&lt;P&gt;I am looking for guidance as to how I can import all Excel Files in a folder on my laptop into SAS...see below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cmags_0-1678993241196.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81679iF89F53DB12C4F6F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cmags_0-1678993241196.png" alt="Cmags_0-1678993241196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can I write some code to import all 3 of these excel files into SAS as their own table? I want to do it without having to go one by one. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 19:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864646#M341443</guid>
      <dc:creator>Cmags</dc:creator>
      <dc:date>2023-03-16T19:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How To Import Multiple Excel Files Into SAS As Separate Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864647#M341444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/440852"&gt;@Cmags&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do that. The general receipe is the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Get a list of the available Excelfiles in the folder: There are plenty of how-to-exampes in this forum.&lt;/LI&gt;
&lt;LI&gt;Write a small macro to loop over the file list and&lt;/LI&gt;
&lt;/OL&gt;
&lt;UL&gt;
&lt;LI&gt;allocate the file as an XLSK-libname&lt;/LI&gt;
&lt;LI&gt;Use proc copy to copy the excel-sheet to a table in your output SAS libname.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 19:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864647#M341444</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2023-03-16T19:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How To Import Multiple Excel Files Into SAS As Separate Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864680#M341449</link>
      <description>&lt;P&gt;Just one of the replies to this question: &lt;A href="https://communities.sas.com/t5/SAS-Programming/Issue-with-importing-all-excel-files-in-folders/m-p/497719#M132021" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Issue-with-importing-all-excel-files-in-folders/m-p/497719#M132021&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The accepted solution is basically one want to implement what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12887"&gt;@ErikLund_Jensen&lt;/a&gt; describes.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 20:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864680#M341449</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-16T20:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How To Import Multiple Excel Files Into SAS As Separate Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864690#M341452</link>
      <description>&lt;P&gt;I am very new to SAS, &amp;amp; am struggling to identify what needs to be changed in that code in order to make it work for what I need. Does most of it stay as is? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 21:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864690#M341452</guid>
      <dc:creator>Cmags</dc:creator>
      <dc:date>2023-03-16T21:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How To Import Multiple Excel Files Into SAS As Separate Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864698#M341454</link>
      <description>&lt;P&gt;If you're very new to SAS and this is a one off task then you'll be quickest to use the Studio or EG import Wizard and do it one by one. Won't take very long.&lt;/P&gt;
&lt;P&gt;If you want to learn how this can be done via code then look-up Proc Import in the SAS docu.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Proc Import make things work for a single Excel and then just copy paste the code just changing the path the Excel you want to import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't use code samples as your starting point that got %macro code in it. If you're very new to SAS then it's just too early/too much to get into this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the things that's important: Where is your SAS running. NOT the client (Studio/EG) but the server to which you connect to as that's where the SAS code executes and from where the Excels must be accessible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...If you use the Studio/EG import wizard then the Excels can be local to your client and Studio/Excel will do the upload to the server side for you.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 21:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Import-Multiple-Excel-Files-Into-SAS-As-Separate-Tables/m-p/864698#M341454</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-03-16T21:36:28Z</dc:date>
    </item>
  </channel>
</rss>

