<?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 How to import excel file with extention xlsx? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608533#M17695</link>
    <description>&lt;P&gt;I'm unable to import excel file with extension xlsx. I'm using the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile='.xlsx' dms=xlsx replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help out how to resolve this...&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Dec 2019 04:27:29 GMT</pubDate>
    <dc:creator>rajeshalwayswel</dc:creator>
    <dc:date>2019-12-01T04:27:29Z</dc:date>
    <item>
      <title>How to import excel file with extention xlsx?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608533#M17695</link>
      <description>&lt;P&gt;I'm unable to import excel file with extension xlsx. I'm using the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile='.xlsx' dms=xlsx replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help out how to resolve this...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2019 04:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608533#M17695</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2019-12-01T04:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to import excel file with extention xlsx?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608536#M17696</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='MyExcelWorkbook.xlsx' dbms=xlsx replace;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Dec 2019 05:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608536#M17696</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-01T05:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to import excel file with extention xlsx?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608537#M17697</link>
      <description>&lt;P&gt;Try :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc import datafile="&amp;lt;your-path&amp;gt;.xlsx" dbms=xlsx replace;

run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are using SAS 9.4 M2 or above you can also use Libname XLSX :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2019 05:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608537#M17697</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-12-01T05:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to import excel file with extention xlsx?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608551#M17700</link>
      <description>&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223452"&gt;@r_behata&lt;/a&gt;'s and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;'s answers, it could be useful to also add:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;an OUT option in the PROC IMPORT statement to specify the name of the output SAS dataset.&lt;/LI&gt;
&lt;LI&gt;a SHEET statement to specify the name of the sheet you to be imported in case you have several ones.&lt;/LI&gt;
&lt;LI&gt;an GETNAMES statement to specify whether the first row of your Excel file contains the names of the variables (Yes | No).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="&amp;lt;your-path&amp;gt;.xlsx"
			dbms=xlsx
			out=&amp;lt;lib.dataset&amp;gt;
			replace;
			sheet=&amp;lt;sheet_name&amp;gt;;
			getnames=Yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2019 08:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-excel-file-with-extention-xlsx/m-p/608551#M17700</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-01T08:35:16Z</dc:date>
    </item>
  </channel>
</rss>

