<?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: DBMS TYPE XLSX not valid for import in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/DBMS-TYPE-XLSX-not-valid-for-import/m-p/644951#M9122</link>
    <description>&lt;P&gt;Please post the full log as text.&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2020 10:44:54 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-05-04T10:44:54Z</dc:date>
    <item>
      <title>DBMS TYPE XLSX not valid for import</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBMS-TYPE-XLSX-not-valid-for-import/m-p/644939#M9121</link>
      <description>&lt;P&gt;Hi, I tried to import and read my xlsx data to sas studio, im running into this error "XLSX not valid for import" and "FILE.WORK.IMPORT.DATA doest not exist", this is the code that I run , it is from sas snippet library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Generated Code (IMPORT) */
/* Source File: raw input data.xlsx */
/* Source Path: /Users/maiman.khalid/My Folder/raw input data.xlsx */
/* Code generated on: May 4, 2020, 4:05:09 PM */

proc sql;
%if %sysfunc(exist(WORK.IMPORT)) %then %do;
    drop table WORK.IMPORT;
%end;
%if %sysfunc(exist(WORK.IMPORT,VIEW)) %then %do;
    drop view WORK.IMPORT;
%end;
quit;



FILENAME REFFILE FILESRVC FOLDERPATH='/Users/maiman.khalid/My Folder'  FILENAME='raw input data.xlsx';

PROC IMPORT DATAFILE=REFFILE
	DBMS=XLSX
	OUT=WORK.IMPORT;
	GETNAMES=YES;
RUN;

PROC CONTENTS DATA=WORK.IMPORT; RUN;

proc print data=work.import(obs=3);
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 09:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBMS-TYPE-XLSX-not-valid-for-import/m-p/644939#M9121</guid>
      <dc:creator>Aiman</dc:creator>
      <dc:date>2020-05-04T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: DBMS TYPE XLSX not valid for import</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBMS-TYPE-XLSX-not-valid-for-import/m-p/644951#M9122</link>
      <description>&lt;P&gt;Please post the full log as text.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 10:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBMS-TYPE-XLSX-not-valid-for-import/m-p/644951#M9122</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-05-04T10:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: DBMS TYPE XLSX not valid for import</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBMS-TYPE-XLSX-not-valid-for-import/m-p/644960#M9123</link>
      <description>&lt;P&gt;Try using the xlsx libname engine instead&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* because Excel field names often have spaces */
options validvarname=any;
 
libname xl XLSX "/folders/myfolders/raw input data.xlsx";   *&amp;lt;--- Change the path;
 
/* discover member (DATA) names */
proc datasets lib=xl; quit;

/* read in one of the tables */
data work.import;
  set xl.&amp;lt;Sheet Name&amp;gt;;  *&amp;lt;--- Change the SHEET Name;
run;
libname xl CLEAR;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 11:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBMS-TYPE-XLSX-not-valid-for-import/m-p/644960#M9123</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2020-05-04T11:50:42Z</dc:date>
    </item>
  </channel>
</rss>

