<?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 read xlsx file in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591945#M169670</link>
    <description>&lt;P&gt;Hi. I'm using the SAS Studio University Edition. How can I import an excel file (name it 2019.xlsx) from my local computer to SAS and use a library to read that xlsx file? What would the codes be? Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 18:23:13 GMT</pubDate>
    <dc:creator>aabbccwyt</dc:creator>
    <dc:date>2019-09-26T18:23:13Z</dc:date>
    <item>
      <title>Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591945#M169670</link>
      <description>&lt;P&gt;Hi. I'm using the SAS Studio University Edition. How can I import an excel file (name it 2019.xlsx) from my local computer to SAS and use a library to read that xlsx file? What would the codes be? Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591945#M169670</guid>
      <dc:creator>aabbccwyt</dc:creator>
      <dc:date>2019-09-26T18:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591949#M169672</link>
      <description>&lt;P&gt;For SAS to see the file you need to put it into (or under) the folder on your real machine that you shared with the virtual machine where SAS is running.&amp;nbsp; You could just place it there outside of the SAS/Studio interface or use the file upload feature in SAS/Studio interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have it there you need to know where it is from SAS's point of view.&amp;nbsp; An easy way to find that is to navigate to the file in SAS/Studio interface and right click on it and select properties. One of the properties is the actual name/path of the file. So copy that and paste it into the code editor window.&amp;nbsp; Use that to make a libname using XLSX engine. Remember that the name you use for the library (the LIBREF) must be a valid SAS name of 8 character or less.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this program will point the libref MYLIB at the file and then copy all of the sheets out as datasets in the WORK library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib xlsx "/folders/myfolders/2009.xslx";
proc copy inlib=mylib out=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591949#M169672</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-26T18:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591955#M169675</link>
      <description>&lt;P&gt;You should work through the free online Programming 1 course to get a grasp on the basic usage of SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591955#M169675</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-26T18:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591987#M169687</link>
      <description>&lt;P&gt;Thank you so much for replying. Is there is a way not to use the shared folder thing? I'm using Macbook btw.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591987#M169687</guid>
      <dc:creator>aabbccwyt</dc:creator>
      <dc:date>2019-09-26T19:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591992#M169689</link>
      <description>&lt;P&gt;Here is what I have.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-09-26 at 3.38.38 PM.png" style="width: 427px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32760i1F14F5FA1EBA881C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-09-26 at 3.38.38 PM.png" alt="Screen Shot 2019-09-26 at 3.38.38 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591992#M169689</guid>
      <dc:creator>aabbccwyt</dc:creator>
      <dc:date>2019-09-26T19:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591994#M169691</link>
      <description>&lt;P&gt;Looks like the file is there.&amp;nbsp; Are you having any trouble?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/591994#M169691</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-26T19:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/592007#M169695</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292388"&gt;@aabbccwyt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you so much for replying. Is there is a way not to use the shared folder thing? I'm using Macbook btw.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;All communication regarding files is done through the shared folder. It is set up explicitly for that.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 20:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/592007#M169695</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-26T20:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Import and read xlsx file in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/592015#M169698</link>
      <description>Thank you so much!</description>
      <pubDate>Thu, 26 Sep 2019 20:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-and-read-xlsx-file-in-SAS/m-p/592015#M169698</guid>
      <dc:creator>aabbccwyt</dc:creator>
      <dc:date>2019-09-26T20:26:03Z</dc:date>
    </item>
  </channel>
</rss>

