<?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: Using proc import after upgrading to Windows 10 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/596990#M18204</link>
    <description>I assume your operating system is 64bit and ms office 32bit. Have a look at this note: &lt;A href="http://support.sas.com/kb/63/750.html" target="_blank"&gt;http://support.sas.com/kb/63/750.html&lt;/A&gt;</description>
    <pubDate>Wed, 16 Oct 2019 17:05:42 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2019-10-16T17:05:42Z</dc:date>
    <item>
      <title>Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/596977#M18203</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I upgraded to Windows 10 (not because I wanted to but because the place where I work made everybody do it).&amp;nbsp; There is Excel data I've brought in many time using the macro (at bottom).&amp;nbsp; But now the macro doesn't work.&amp;nbsp; Here is the error I'm getting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Connect: Class not registered&lt;BR /&gt;Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried a few variations, including doing "Import Data" from the File menu to let SAS wrote new code itself and then use that, but it doesn't work.&amp;nbsp; In looking if someone has come across this problem before on here, I get the impression that the only way to deal with this is to reinstall SAS.&amp;nbsp; Is that really the case?&amp;nbsp; A hate to sound like a whiner, but stuff like this is a mojo killer.&amp;nbsp; It's like planning a long and detailed trip around the world and then when it comes time to go, you can't get out of your house because your can't figure out how to work the doorknob.&amp;nbsp; It's demoralizing.&amp;nbsp; I've spent two&amp;nbsp; hours on this and have gotten nowhere.&amp;nbsp; Any help is greatly appreciated.&amp;nbsp; Here's the marco code.&amp;nbsp; I'm pretty sure that the fact that it's a macro instead of regular code isn't the issue.&amp;nbsp; Before Upgrading to Windows 10 I used this code hundreds of times without any problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%MACRO FROM_EXCEL (folder, excel_file, name); &lt;BR /&gt;PROC IMPORT OUT= WORK.&amp;amp;NAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATAFILE = "C:\Path\&amp;amp;EXCEL_FILE..xlsx"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DBMS=XLSX REPLACE; RANGE = "&amp;amp;NAME$";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GETNAMES=YES; MIXED=NO; SCANTEXT=YES; USEDATE=YES; SCANTIME=YES; &lt;BR /&gt;RUN; &lt;BR /&gt;%MEND FROM_EXCEL;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/596977#M18203</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2019-10-16T16:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/596990#M18204</link>
      <description>I assume your operating system is 64bit and ms office 32bit. Have a look at this note: &lt;A href="http://support.sas.com/kb/63/750.html" target="_blank"&gt;http://support.sas.com/kb/63/750.html&lt;/A&gt;</description>
      <pubDate>Wed, 16 Oct 2019 17:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/596990#M18204</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-10-16T17:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/596994#M18205</link>
      <description>&lt;P&gt;What if I have 64 bit of both, which I do?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 17:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/596994#M18205</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2019-10-16T17:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597058#M18207</link>
      <description>&lt;P&gt;This is more an issue between the bitness of SAS and Excel. Is your SAS 32 or 64 bit?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 19:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597058#M18207</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-16T19:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597066#M18208</link>
      <description>&lt;P&gt;I am running SAS Version 9.4 TS Level 1M1.&lt;/P&gt;
&lt;P&gt;It says "X64_8PRO," which I'm guessing means 64 bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also says&lt;/P&gt;
&lt;P&gt;Operating System Information&lt;/P&gt;
&lt;P&gt;Windows Version 6.2.9200&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that help?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 19:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597066#M18208</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2019-10-16T19:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597072#M18209</link>
      <description>&lt;P&gt;Not WINDOWS bitness. Microsoft OFFICE bitness (AKA, Word, Excel, etc.)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 19:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597072#M18209</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-16T19:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597078#M18210</link>
      <description>&lt;P&gt;My operating system is 64 bit and also my Microsoft Office 64.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 19:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597078#M18210</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2019-10-16T19:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597413#M18215</link>
      <description>&lt;P&gt;Can you run a test with the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA=sashelp.class 
     OUTFILE='c:\demo.xlsx' 
     DBMS=XLSX REPLACE;
     SHEET='Class';
RUN;

PROC IMPORT DATAFILE="c:\demo.xlsx"
     DBMS=XLSX
     OUT=WORK.CLASS REPLACE;
     SHEET='Class'; 
RUN;
 
PROC PRINT DATA=WORK.CLASS;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NOTE: In most cases MS Office installations are still 32bit. To check:&amp;nbsp;&lt;A href="https://support.jetglobal.com/hc/en-us/articles/219403267-How-to-determine-whether-you-have-32-bit-or-64-bit-Excel" target="_blank"&gt;https://support.jetglobal.com/hc/en-us/articles/219403267-How-to-determine-whether-you-have-32-bit-or-64-bit-Excel&lt;/A&gt;&amp;nbsp;If you Office in 32bit and windows 64bit you need PC Files Server&amp;nbsp;&lt;A href="https://support.sas.com/downloads/package.htm?pid=1285" target="_blank"&gt;https://support.sas.com/downloads/package.htm?pid=1285&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597413#M18215</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-10-17T16:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597421#M18216</link>
      <description>&lt;P&gt;I just checked an my MS Office is indeed 64-bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the things you listed and it worked.&amp;nbsp; It output the little SAS dataset to an Excel sheet and then it brought it back in and it all worked well, including the proc print.&amp;nbsp; Should I try it with my data?&amp;nbsp; I notice that in my code (the code that worked until they put Windows 10 on my machine), I have Range = "&amp;amp;NAME$"; to indicate which sheet to get from the Excel file but that the code I just used from you uses Sheet = "Class";&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 16:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597421#M18216</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2019-10-17T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597439#M18217</link>
      <description>&lt;P&gt;I believe the dollar-sign is no needed longer needed. Not sure when that changed.&lt;/P&gt;
&lt;P&gt;A couple of questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do your worksheets have spaces in the names?&lt;/LI&gt;
&lt;LI&gt;Can names of worksheets or ranges be longer than 32 characters?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best regards, Jos&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597439#M18217</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2019-10-17T17:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597443#M18218</link>
      <description>&lt;P&gt;You might need to setup SAS PC FILES SERVER as a buffer between your SAS code and the Microsoft code.&amp;nbsp; But that is normally only needed to overcome the mixed 32/64 bit environments.&amp;nbsp; If you are having trouble with SAS accessing the Microsoft tools you might also have trouble with the PC FILES server accessing the Microsoft tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to open a ticket with SAS support to see if they can help you debug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The advantage of the using the XLSX engine instead is that it does not depend on any Microsoft code running on the SAS server.&amp;nbsp; You can even use that when running SAS on Unix.&lt;/P&gt;
&lt;P&gt;The disadvantage is that it does not have all of the features of the EXCEL engine.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597443#M18218</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-17T17:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597446#M18219</link>
      <description>&lt;P&gt;In the past I've had issues with embedded blanks in Excel sheet names and thus by now I've made it my habit to never have blanks and to fill them in with _.&amp;nbsp; And I don't make them longer than 32 because I've had issues with that in the past too.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597446#M18219</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2019-10-17T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc import after upgrading to Windows 10</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597449#M18220</link>
      <description>&lt;P&gt;I already put PC Files Server on, way back when, so presumably them updating my computer to Window 10 didn't change that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to try to use the test code the other person posted and hopefully it'll work.&amp;nbsp; Yes, if we go long enough I'll have to go directly to SAS support.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 17:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-proc-import-after-upgrading-to-Windows-10/m-p/597449#M18220</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2019-10-17T17:13:59Z</dc:date>
    </item>
  </channel>
</rss>

