<?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: PROC IMPORT - Problems with xls and xlsx in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87745#M25048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Along yaswanthj line of thinking, you could even write sas code to convert your Excel file to a csv without using an import, and then read in the csv file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 13:39:19 GMT</pubDate>
    <dc:creator>Anotherdream</dc:creator>
    <dc:date>2013-09-19T13:39:19Z</dc:date>
    <item>
      <title>PROC IMPORT - Problems with xls and xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87742#M25045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a little problem with my proc import. Indeed, when I use the code below, it doesn't enable me to import .xlsx files, but only .xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I change it to import both ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT=TRAVAIL.INPUTS_1_&amp;amp;Q&amp;amp;Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "Y:\&amp;amp;Q&amp;amp;Y." &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCEL REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RANGE="Sheet1$";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIXED=NO;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTEXT=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USEDATE=NO;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTIME=YES;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87742#M25045</guid>
      <dc:creator>GuiVtzl</dc:creator>
      <dc:date>2013-09-19T09:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT - Problems with xls and xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87743#M25046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Convert .xlsx (2007) file to .xls (2003), in your computer and use your code. you can easily import the files..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yaswanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 10:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87743#M25046</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-19T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT - Problems with xls and xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87744#M25047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can convert the .xlsx file to .csv and using infile statement, you can easily get into sas environment without using proc import procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;infile '"path/file.csv";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 11:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87744#M25047</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-09-19T11:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT - Problems with xls and xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87745#M25048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Along yaswanthj line of thinking, you could even write sas code to convert your Excel file to a csv without using an import, and then read in the csv file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 13:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87745#M25048</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2013-09-19T13:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT - Problems with xls and xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87746#M25049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&amp;nbsp; DBMS=EXCELS instead of EXCEL and then try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103761.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103761.htm"&gt;SAS/ACCESS(R) 9.2 Interface to PC Files: Reference, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87746#M25049</guid>
      <dc:creator>riteshvado</dc:creator>
      <dc:date>2013-09-19T15:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT - Problems with xls and xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87747#M25050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello GuiVtzl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the values for the DBMS options that you can use depend on your SAS version (including the "bitness", i.e. if you have 32bit or 64bit SAS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have SAS 9.3 64bit maintenance release 1 (TS1M0), you can use either DBMS=XLS or DBMS=XLSX, but you have to decide which Excel format you want to support, since they are quite different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If thats not possible, you probably have to go the CSV way like the other commentators suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87747#M25050</guid>
      <dc:creator>JohannesLang</dc:creator>
      <dc:date>2013-09-19T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT - Problems with xls and xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87748#M25051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can extract the file extension using &lt;SPAN style="font-family: courier new,courier;"&gt;%let fileExtension = %scan(&amp;amp;excelFile, -1, %str(.))&lt;/SPAN&gt; and use it afterwards in the dbms option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 07:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Problems-with-xls-and-xlsx/m-p/87748#M25051</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2013-09-24T07:24:57Z</dc:date>
    </item>
  </channel>
</rss>

