<?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 for xlsm file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/307802#M61131</link>
    <description>&lt;P&gt;Hi, I'm stuck with a similar error. I'm trying to import data from a .XSLX. and while I execute the PROC IMPORT I get this error:&amp;nbsp;&lt;FONT color="#FF0000"&gt;"ERROR: Server Name is invalid or missing."&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This&amp;nbsp;file is placed in a shared folder with a path like this: \\&lt;EM&gt;file_server_name\folder\subfolder,&amp;nbsp;&lt;/EM&gt;I'm using SAS Enterprise Guide 7.1 and I guess we are using a UNIX server for the metadata because in the LOG of the import task the INFILE has this path:&amp;nbsp;'/sasendwork/work/SAS_work722C01660016_&lt;EM&gt;sas_server_name&lt;/EM&gt;/#LN00014'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to import files&amp;nbsp;&lt;/SPAN&gt;using code because I have&amp;nbsp;to upload a daily report placed in this shared folder that has&amp;nbsp;a date in the name, something like '&lt;EM&gt;File mm-dd-yyy.xlsx'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a lot of things but I guess most of all solutions are intended for SAS 9.1 or later versions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be very appreciate since we expent a lot of time updating the import task everyday.&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;-Daniel&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 02:17:39 GMT</pubDate>
    <dc:creator>reddaniel</dc:creator>
    <dc:date>2016-10-28T02:17:39Z</dc:date>
    <item>
      <title>proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254918#M57012</link>
      <description>&lt;P&gt;i want to import .xlsm file using proc import.&lt;/P&gt;
&lt;P&gt;when i did using the below code, i get the following error.&lt;/P&gt;
&lt;P&gt;proc import &lt;BR /&gt; datafile="&amp;amp;workdir./progplan.xlsm"&lt;BR /&gt; out = import_progplan&lt;BR /&gt; dbms = excelcs replace;&lt;BR /&gt; sheet = "Programming Plan";&lt;BR /&gt; getnames=yes;&lt;BR /&gt; mixed=no;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mixed=no; run;&lt;BR /&gt; _____&lt;BR /&gt; 180&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;ERROR: Statement or Option "GETNAMES" not valid for EXCELCS IMPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 12:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254918#M57012</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-03-07T12:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254919#M57013</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/kb/41/060.html" target="_blank"&gt;http://support.sas.com/kb/41/060.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 12:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254919#M57013</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-07T12:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254927#M57014</link>
      <description>&lt;P&gt;i added the below code but still get error.&lt;/P&gt;
&lt;P&gt;proc import &lt;BR /&gt; datafile="&amp;amp;workdir./progplan.xlsm"&lt;BR /&gt; out = import_progplan&lt;BR /&gt; dbms = excelcs replace;&lt;BR /&gt; sheet = "Programming Plan";&lt;BR /&gt; range='test1$a2:e21'n;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ERROR: Server Name is invalid or missing.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254927#M57014</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-03-07T13:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254929#M57015</link>
      <description>&lt;P&gt;Are you using SAS University Edition?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254929#M57015</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-07T13:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254932#M57016</link>
      <description>&lt;P&gt;No, its SAS Unix&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254932#M57016</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2016-03-07T13:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254933#M57017</link>
      <description>&lt;P&gt;EXCELCS requires the SAS/ACCESS to PC Files component "PC FIles Server". &amp;nbsp;If you're running SAS for Windows, that&amp;nbsp;&lt;STRONG&gt;should&lt;/STRONG&gt; autostart -- though it might need some configuration. &amp;nbsp;And you'll have &lt;A href="http://support.sas.com/kb/43/802.html" target="_self"&gt;to make sure it's installed&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On SAS for UNIX, you need to have PC Files Server on a Windows node in your network, then specify that node as part of the PROC IMPORT statement -- this is how Excel-specific behaviors can be delegated from SAS on UNIX to the Excel engine. &amp;nbsp;Note that you don't need this in place for the more common XLSX files -- DBMS=XLSX works without it. &amp;nbsp;But for macro-enabled XLSM files, you need to push the work to this specific Excel engine using EXCELCS and the PC Files Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254933#M57017</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-03-07T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254934#M57018</link>
      <description>&lt;P&gt;Simplify your process. &amp;nbsp;Save the "data" to a "data transfer" format e.g. CSV or XML. &amp;nbsp;Then write a simple data step import program. &amp;nbsp;This will then be robust, cross platform, easy to maintain etc. &amp;nbsp;Excel is not a good data transfer format, it is proprietary (i.e. there is no Office for Unix) - so not cross platform, nor is it easy to read without that software, nor is it strcutured data. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/254934#M57018</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-07T13:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc import for xlsm file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/307802#M61131</link>
      <description>&lt;P&gt;Hi, I'm stuck with a similar error. I'm trying to import data from a .XSLX. and while I execute the PROC IMPORT I get this error:&amp;nbsp;&lt;FONT color="#FF0000"&gt;"ERROR: Server Name is invalid or missing."&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This&amp;nbsp;file is placed in a shared folder with a path like this: \\&lt;EM&gt;file_server_name\folder\subfolder,&amp;nbsp;&lt;/EM&gt;I'm using SAS Enterprise Guide 7.1 and I guess we are using a UNIX server for the metadata because in the LOG of the import task the INFILE has this path:&amp;nbsp;'/sasendwork/work/SAS_work722C01660016_&lt;EM&gt;sas_server_name&lt;/EM&gt;/#LN00014'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to import files&amp;nbsp;&lt;/SPAN&gt;using code because I have&amp;nbsp;to upload a daily report placed in this shared folder that has&amp;nbsp;a date in the name, something like '&lt;EM&gt;File mm-dd-yyy.xlsx'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a lot of things but I guess most of all solutions are intended for SAS 9.1 or later versions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be very appreciate since we expent a lot of time updating the import task everyday.&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;-Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 02:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-for-xlsm-file/m-p/307802#M61131</guid>
      <dc:creator>reddaniel</dc:creator>
      <dc:date>2016-10-28T02:17:39Z</dc:date>
    </item>
  </channel>
</rss>

