<?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: The EXCEL Engine cannot be found, despite having SAS/ACCESS Interface to PC Files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555941#M154787</link>
    <description>Redesign your Excel work book. I export my data to a different sheet and have those cells linked from the export to show only what I want.</description>
    <pubDate>Fri, 03 May 2019 14:37:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-05-03T14:37:50Z</dc:date>
    <item>
      <title>The EXCEL Engine cannot be found, despite having SAS/ACCESS Interface to PC Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555718#M154674</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS, using version 7.15 of Enterprise Guide, and have been tasked with exporting data to a specified range on an existing Excel sheet. I read that if you have SAS/ACCESS Interface to PC Files you can assign a libname that refers to the workbook you want to export to, then you can refer to any named ranges within that workbook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran a proc setinit and verified that I do have SAS/ACCESS Interface to PC Files, so I tried writing a libname statement that looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname WrkBk EXCEL "Filepath/Workbook.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where Filepath/Workbook.xlsx were replaced with the actual file path and workbook name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me the following two errors:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The EXCEL engine cannot be found.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried using ODS and the XLSX engine, however neither of those can use named ranges. Any and all thoughts on how to resolve this issue are much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Wishes,&lt;/P&gt;&lt;P&gt;JH&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 18:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555718#M154674</guid>
      <dc:creator>wowJH</dc:creator>
      <dc:date>2019-05-02T18:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: The EXCEL Engine cannot be found, despite having SAS/ACCESS Interface to PC Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555750#M154689</link>
      <description>&lt;P&gt;EXCEL is the old libname method, I believe that's still for xls files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use PCFILES, you need to use the PCFILES keyword.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myRef PCFILES path='path to excel file';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;XLSX is the other common approach, but I don't think that supports writing to ranges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myNewRef xlsx 'path to xlsx file';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the PCFILES doesn't work, post back with the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you confirm what was licensed vs installed as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272053"&gt;@wowJH&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to SAS, using version 7.15 of Enterprise Guide, and have been tasked with exporting data to a specified range on an existing Excel sheet. I read that if you have SAS/ACCESS Interface to PC Files you can assign a libname that refers to the workbook you want to export to, then you can refer to any named ranges within that workbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran a proc setinit and verified that I do have SAS/ACCESS Interface to PC Files, so I tried writing a libname statement that looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname WrkBk EXCEL "Filepath/Workbook.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where Filepath/Workbook.xlsx were replaced with the actual file path and workbook name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This gives me the following two errors:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The EXCEL engine cannot be found.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also tried using ODS and the XLSX engine, however neither of those can use named ranges. Any and all thoughts on how to resolve this issue are much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Wishes,&lt;/P&gt;
&lt;P&gt;JH&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 20:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555750#M154689</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-02T20:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: The EXCEL Engine cannot be found, despite having SAS/ACCESS Interface to PC Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555768#M154704</link>
      <description>&lt;P&gt;Are you running SAS on Unix?&amp;nbsp; You cannot use EXCEL engine on Unix since there is no Unix version of Excel for it to connect to.&lt;/P&gt;
&lt;P&gt;You will need to either use PCFILES engine to connect to SAS PCFILES server running on a Windows machine.&lt;/P&gt;
&lt;P&gt;Or just use the XLSX engine instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it might not let you have all of the same functionality.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 21:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555768#M154704</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-02T21:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: The EXCEL Engine cannot be found, despite having SAS/ACCESS Interface to PC Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555771#M154706</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272053"&gt;@wowJH&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to SAS, using version 7.15 of Enterprise Guide, and have been tasked with exporting data to a specified range on an existing Excel sheet. I read that if you have SAS/ACCESS Interface to PC Files you can assign a libname that refers to the workbook you want to export to, then you can refer to any named ranges within that workbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran a proc setinit and verified that I do have SAS/ACCESS Interface to PC Files, so I tried writing a libname statement that looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc Setinit reports on license status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;proc&lt;/FONT&gt; &lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;product_status&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;run&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;to see if the module was actually installed.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;If the log doesn't show something similar to&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;For SAS/ACCESS Interface to PC Files ...
&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;then the interface to PC Files wasn't installed.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 21:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555771#M154706</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-02T21:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: The EXCEL Engine cannot be found, despite having SAS/ACCESS Interface to PC Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555929#M154783</link>
      <description>&lt;P&gt;Okay, first of all thanks to everyone who replied all of your suggestions were helpful. I talked to&amp;nbsp;a coworker and we do run SAS on a UNIX server which must be why the EXCEL engine is not working. I did get an error when using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myRef PCFILES path='path to excel file';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;my coworker suggested adding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SERVER = &amp;amp;_clientmachine.;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and that resolved the errors and I was able to export to a named range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now my issue is that SAS includes the variables names as the first row in the exported range. Here's the form of the code I'm using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Define libname to output workbook*/
libname WrkBk PCFILES path="path to excel file" SERVER=&amp;amp;_clientmachine.;

/*Clear existing data from desired named range*/
proc datasets lib=WrkBk nolist;
	delete namedRange;
quit;

/*Export data to Excel*/
data WrkBk.namedRange;
	set importDataSet;
run;
libname WrkBk clear;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From what I've read there isn't an option to not include variable names using a data step and using putnames = no in a proc export statement doesn't seem to be able to do what I want. I know this macro: &lt;A href="http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS" target="_blank" rel="noopener"&gt;http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS&lt;/A&gt;&amp;nbsp;would do what I want, but I haven't had any success running&amp;nbsp;it in Enterprise Guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It&amp;nbsp;appears my options are as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The quick and dirty option: hide the first row of the named range and pretend like it doesn't exist.&lt;/LI&gt;&lt;LI&gt;Use ODS to recreate the template.&lt;/LI&gt;&lt;LI&gt;Use SAS to export to a text file and VBA to import that into the template.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any other suggestions or corrections would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 13:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555929#M154783</guid>
      <dc:creator>wowJH</dc:creator>
      <dc:date>2019-05-03T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: The EXCEL Engine cannot be found, despite having SAS/ACCESS Interface to PC Files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555941#M154787</link>
      <description>Redesign your Excel work book. I export my data to a different sheet and have those cells linked from the export to show only what I want.</description>
      <pubDate>Fri, 03 May 2019 14:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-EXCEL-Engine-cannot-be-found-despite-having-SAS-ACCESS/m-p/555941#M154787</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-03T14:37:50Z</dc:date>
    </item>
  </channel>
</rss>

