<?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: SAS 9.4 won't Import from New version of Excel in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693936#M20501</link>
    <description>&lt;PRE&gt;PROC IMPORT OUT= City_trees_DBH 
        DATAFILE= "D:\Laptop_UFORE_Output\Street tree reports\California\City\treedata.xlsx" 
	 	DBMS=EXCELCS REPLACE;
     RANGE="DBH"; 
     SCANTEXT=YES;
     USEDATE=YES;
     SCANTIME=YES;
RUN;&lt;/PRE&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name&lt;BR /&gt;not found and no default driver specified&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;ERROR: Connection Failed. See log for details.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.98 seconds&lt;BR /&gt;cpu time 0.31 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2020 21:40:00 GMT</pubDate>
    <dc:creator>mambrose</dc:creator>
    <dc:date>2020-10-23T21:40:00Z</dc:date>
    <item>
      <title>SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693922#M20498</link>
      <description>&lt;P&gt;My organization recently pushed out updates to Windows 10 and moved us to Office 365.&amp;nbsp; I have the 32-bit version of Office 365 installed.&amp;nbsp; I now find that SAS can't import Excel files.&amp;nbsp; I get an error message saying that it can't find the right driver.&amp;nbsp; From previous Q &amp;amp; A's I determined that I need to change the version of PC Files Server.&amp;nbsp; However, I now find that the SAS Deployment Center won't run.&amp;nbsp; I try running it; it starts and then seems to die.&amp;nbsp; Any ideas what to try next?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 21:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693922#M20498</guid>
      <dc:creator>mambrose</dc:creator>
      <dc:date>2020-10-23T21:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693932#M20499</link>
      <description>&lt;P&gt;Please show the code you attempted and any messages. Copy from the log and paste into a code box opened on the forum with the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes you need to change things related to the source file. But what depends on how you try. So provide a few more details.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 21:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693932#M20499</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-23T21:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693934#M20500</link>
      <description>&lt;P&gt;Doesn't solve the problem directly, but can you use the XLSX libname engine instead?&amp;nbsp; I think it doesn't use the Microsoft drivers on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 21:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693934#M20500</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2020-10-23T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693936#M20501</link>
      <description>&lt;PRE&gt;PROC IMPORT OUT= City_trees_DBH 
        DATAFILE= "D:\Laptop_UFORE_Output\Street tree reports\California\City\treedata.xlsx" 
	 	DBMS=EXCELCS REPLACE;
     RANGE="DBH"; 
     SCANTEXT=YES;
     USEDATE=YES;
     SCANTIME=YES;
RUN;&lt;/PRE&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name&lt;BR /&gt;not found and no default driver specified&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;ERROR: Connection Failed. See log for details.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.98 seconds&lt;BR /&gt;cpu time 0.31 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 21:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693936#M20501</guid>
      <dc:creator>mambrose</dc:creator>
      <dc:date>2020-10-23T21:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693940#M20504</link>
      <description>Might be one of those 32- vs 64-bit problems with Office.  We've had very similar messages when something was installed wrong, or not installed at all.  Someone in our IT department had to spend a lot of time figuring out the correct drivers and configuration for our databases (and the ODBC driver makes Excel look like a database).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2020 22:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/693940#M20504</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2020-10-23T22:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694450#M20520</link>
      <description>&lt;P&gt;EXCELCS has to be used in conjunction with the PC Files Server, and needs server parameters to work (servername etc)&lt;/P&gt;
&lt;P&gt;Since you have a XLSX file, make sure it is available for the SAS session and use DBMS=XLSX or LIBNAME XLSX to access the file. This engine is available on Windows and UNIX, does not rely on any MS-supplied modules, and does not suffer from the "Bitness Flu".&lt;/P&gt;
&lt;P&gt;For further help, please tell us about your SAS architecture (client/server vs. local, operating system(s), user interface)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 08:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694450#M20520</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-27T08:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694580#M20522</link>
      <description>&lt;P&gt;I tried that, but SAS doesn't seem to be finding the sheet that I want to import in the Excel workbook. The revised code looks like:&lt;/P&gt;&lt;PRE&gt;PROC IMPORT OUT= city_DBH 
        DATAFILE= "D:\Laptop_UFORE_Output\Street tree reports\State\City.xlsx" 
	 	DBMS=XLSX REPLACE;
     RANGE="sheet$"; 
RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 14:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694580#M20522</guid>
      <dc:creator>mambrose</dc:creator>
      <dc:date>2020-10-27T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694584#M20523</link>
      <description>And I am running a local version of SAS 9.4 under Windows 10 (x64). It's Windows 10.0.1863 to be exact.</description>
      <pubDate>Tue, 27 Oct 2020 14:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694584#M20523</guid>
      <dc:creator>mambrose</dc:creator>
      <dc:date>2020-10-27T14:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694590#M20525</link>
      <description>&lt;P&gt;I don't know if XLSX supports ranges,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;biut since you have a locally installed SAS on Windows, try thois:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import
  out= city_DBH 
  datafile= "D:\Laptop_UFORE_Output\Street tree reports\State\City.xlsx" 
  dbms=excel
  replace
;
range="'sheet$'"; /* note single quotes inside double quotes */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=acpcref&amp;amp;docsetTarget=n0msy4hy1so0ren1acm90iijxn8j.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=acpcref&amp;amp;docsetTarget=n0msy4hy1so0ren1acm90iijxn8j.htm&amp;amp;locale=en&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;Alternatively, use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname in xlsx "D:\Laptop_UFORE_Output\Street tree reports\State\City.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then look at the library to see the sheet names as SAS sees them.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 14:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694590#M20525</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-27T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694601#M20526</link>
      <description>I tried using the libname statement you suggested - no errors running it. Looking in the library, I don't see any sheets. The library looks empty even though the Excel workbook has 3 sheets in it.</description>
      <pubDate>Tue, 27 Oct 2020 14:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694601#M20526</guid>
      <dc:creator>mambrose</dc:creator>
      <dc:date>2020-10-27T14:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694607#M20527</link>
      <description>So, I tried using PROC IMPORT with DBMS=XLSX and no RANGE statement, and it works IF I pull the sheet that I want to import out and save it in its own EXCEL workbook file. So, I have a workable temporary solution, but it won't work large scale because what I want to import are all EXCEL sheets that are derived from data in other sheets in the workbook. I guess the only long-term solution is to get PC Files Server to work again.</description>
      <pubDate>Tue, 27 Oct 2020 15:12:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694607#M20527</guid>
      <dc:creator>mambrose</dc:creator>
      <dc:date>2020-10-27T15:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694608#M20528</link>
      <description>&lt;P&gt;Then the Excel workbook file is not (from the POV of the SAS session) where you expect it.&lt;/P&gt;
&lt;P&gt;Since LIBNAME XLSX or EXCEL can be used to&amp;nbsp;&lt;EM&gt;create&lt;/EM&gt; a file, the presence of the file is not checked when the library is defined, and will only be checked for a valid path name once you&amp;nbsp;&lt;EM&gt;write&lt;/EM&gt; to the library. Up till then, the library is reported as empty if no file was found.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 15:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694608#M20528</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-27T15:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694613#M20529</link>
      <description>Upon further testing, I found that PROC IMPORT with DBMS=XLSX will also work importing from a multi-sheet EXCEL workbook file IF the sheet I want to import is the first sheet in the file. So, I would still need to get PC Files Server running correctly to import more than one sheet from the same EXCEL file.</description>
      <pubDate>Tue, 27 Oct 2020 15:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694613#M20529</guid>
      <dc:creator>mambrose</dc:creator>
      <dc:date>2020-10-27T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 won't Import from New version of Excel</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694623#M20530</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/353560"&gt;@mambrose&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Upon further testing, I found that PROC IMPORT with DBMS=XLSX will also work importing from a multi-sheet EXCEL workbook file IF the sheet I want to import is the first sheet in the file. So, I would still need to get PC Files Server running correctly to import more than one sheet from the same EXCEL file.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;PROC IMPORT will import the first sheet if you don't tell it which one you want.&lt;/P&gt;
&lt;P&gt;You can use the SHEET= statement to tell it the name of the sheet you want.&amp;nbsp; Or add the sheetname to the value in the RANGE= statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import dbms=xlsx out=test1 replace
  datafile='c:\downloads\three.xlsx'
;
run;
proc import dbms=xlsx out=test2 replace
  datafile='c:\downloads\three.xlsx'
;
  sheet='Sheet2';
run;
proc import dbms=xlsx out=test3 replace
  datafile='c:\downloads\three.xlsx'
;
  range='$A1:0';
run;
proc import dbms=xlsx out=test4 replace
  datafile='c:\downloads\three.xlsx'
;
  range='Sheet2$A1:B2';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Oct 2020 16:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4-won-t-Import-from-New-version-of-Excel/m-p/694623#M20530</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-10-27T16:34:01Z</dc:date>
    </item>
  </channel>
</rss>

