<?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 and xls file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617320#M180876</link>
    <description>&lt;P&gt;the xls file comes from an outside vendor. not sure why they won't switch over to xlsx format&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 21:23:08 GMT</pubDate>
    <dc:creator>GreggB</dc:creator>
    <dc:date>2020-01-14T21:23:08Z</dc:date>
    <item>
      <title>PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617261#M180839</link>
      <description>&lt;P&gt;This code worked fine until recently:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="G:fakepath\&amp;amp;year.\Preliminary\3701_Prelim_Score_Roster - 14JAN19.xls"
out=eoc dbms=excelcs replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, I get this error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Failed to connect to the Server: .
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
      real time           0.10 seconds
      cpu time            0.03 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I wondered if my latest SAS renewal was the issue. Here's what I'm running on a Windows 64bit desktop:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" width="75%"&gt;&lt;STRONG&gt;Product(s) Ordered&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="25%"&gt;&lt;STRONG&gt;Expiration Date&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="3"&gt;&amp;nbsp;SAS Analytics Pro, including the products:&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="2"&gt;&amp;nbsp;&amp;nbsp;• Base SAS&lt;/TD&gt;
&lt;TD&gt;November 29, 2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="2"&gt;&amp;nbsp;&amp;nbsp;• SAS/GRAPH&lt;/TD&gt;
&lt;TD&gt;November 29, 2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="2"&gt;&amp;nbsp;&amp;nbsp;• SAS/STAT&lt;/TD&gt;
&lt;TD&gt;November 29, 2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="2"&gt;&amp;nbsp;SAS Enterprise Guide&lt;/TD&gt;
&lt;TD&gt;November 29, 2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="2"&gt;&amp;nbsp;SAS/ACCESS Interface to ODBC&lt;/TD&gt;
&lt;TD&gt;October 30, 2019&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="2"&gt;&amp;nbsp;SAS/ACCESS Interface to PC Files&lt;/TD&gt;
&lt;TD&gt;November 29, 2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 14 Jan 2020 17:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617261#M180839</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2020-01-14T17:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617265#M180843</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is your running-code environment weel-connected to your local windows? Are you working with SAS Studio or SAS EG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 17:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617265#M180843</guid>
      <dc:creator>JeanDo</dc:creator>
      <dc:date>2020-01-14T17:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617270#M180846</link>
      <description>Is your PC Files Server running? I would recommend trying dbms=excel for an excel file. Otherwise, the next step would be to see if the PC FILE Server is installed, launch it and then try the code again.</description>
      <pubDate>Tue, 14 Jan 2020 18:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617270#M180846</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-14T18:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617282#M180852</link>
      <description>&lt;P&gt;I changed&amp;nbsp; my code to dbms=excel and got a different error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Connect: Class not registered&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.20 seconds&lt;BR /&gt;cpu time 0.07 seconds&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 19:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617282#M180852</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2020-01-14T19:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617283#M180853</link>
      <description>&lt;P&gt;I'm running Base SAS 9.4&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 19:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617283#M180853</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2020-01-14T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617285#M180855</link>
      <description>&lt;P&gt;Why not try using DBMS=XLS and avoid trying to depend on getting SAS to talk to Windows/Microsoft code?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 19:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617285#M180855</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-14T19:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617290#M180858</link>
      <description>&lt;P&gt;When I do that it reads column 1 only (in a weird fashion)&amp;nbsp; like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should have:&lt;/P&gt;
&lt;P&gt;3701551&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;instead:&lt;/P&gt;
&lt;P&gt;3 7 0 1&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 19:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617290#M180858</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2020-01-14T19:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617314#M180872</link>
      <description>&lt;P&gt;What is producing the XLS file?&amp;nbsp; Are they really old?&amp;nbsp; If not then perhaps your process can produce the more modern (and better documented) XLSX format instead?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 20:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617314#M180872</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-14T20:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617320#M180876</link>
      <description>&lt;P&gt;the xls file comes from an outside vendor. not sure why they won't switch over to xlsx format&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 21:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617320#M180876</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2020-01-14T21:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617323#M180878</link>
      <description>Hi,&lt;BR /&gt;Dis toi try this method :&lt;BR /&gt;&lt;BR /&gt;libname test pcfiles path=your-path-to-the-file;&lt;BR /&gt;&lt;BR /&gt;data toto;&lt;BR /&gt;set test.sheet1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;When sheet1 is the name of the sheet you want to ingest</description>
      <pubDate>Tue, 14 Jan 2020 21:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617323#M180878</guid>
      <dc:creator>JeanDo</dc:creator>
      <dc:date>2020-01-14T21:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617344#M180891</link>
      <description>If ExcelCS doesn't work, PCFILES won't work. &lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13712"&gt;@GreggB&lt;/a&gt;, did you try turning on your PCFILE server and seeing if it works? It is an application you have to start if you're not working on a SAS server at an organization where it's managed by someone else.</description>
      <pubDate>Tue, 14 Jan 2020 23:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617344#M180891</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-14T23:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT and xls file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617345#M180892</link>
      <description>Worse case scenario, this VBS code will convert an XLSX to CSV, and you could modify it to convert an XLS to CSV or XLSX and see if either of those formats worked. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://gist.github.com/statgeek/878e585102c14e01581f55dbe972d27e" target="_blank"&gt;https://gist.github.com/statgeek/878e585102c14e01581f55dbe972d27e&lt;/A&gt;</description>
      <pubDate>Tue, 14 Jan 2020 23:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-and-xls-file/m-p/617345#M180892</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-14T23:26:31Z</dc:date>
    </item>
  </channel>
</rss>

