<?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 Open excel with SAS in Read only mode in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331480#M2003</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working with an excel file on a shared directory. Some times I'm getting errors because someone has the document opened in edit mode, and SAS can not connect to the excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is is possible to connect to a excel file with read only mode? If there is a way this should stop producing connection errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Toni&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 13:01:51 GMT</pubDate>
    <dc:creator>arodriguez</dc:creator>
    <dc:date>2017-02-10T13:01:51Z</dc:date>
    <item>
      <title>Open excel with SAS in Read only mode</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331480#M2003</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working with an excel file on a shared directory. Some times I'm getting errors because someone has the document opened in edit mode, and SAS can not connect to the excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is is possible to connect to a excel file with read only mode? If there is a way this should stop producing connection errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Toni&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331480#M2003</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2017-02-10T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAS in Read only mode</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331488#M2004</link>
      <description>&lt;P&gt;The problem is that the execrable Excel keeps the file open on the operating system level, and that interferes with some open modes that include read access (ie setting a libname xlsx automatically enables you to create sheets - new datasets - and that infers permament write access).&lt;/P&gt;
&lt;P&gt;One of the reasons Excel files (xls, xlsx and their brethren) are considered bad choices for data interchange. Text-based formats (csv) are preferred.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331488#M2004</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-10T13:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAS in Read only mode</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331489#M2005</link>
      <description>&lt;P&gt;Ii is possible to copy the workbook whilst it is open, so can you not do copy command to your local work area and use the copy, then it can either be removed by you, or at close down when work is removed.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331489#M2005</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-10T13:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAS in Read only mode</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331581#M2006</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1205  libname xel "d:/xls/class.xlsx" access=readonly;
NOTE: Libref XEL was successfully assigned as follows:
      Engine:        EXCEL
      Physical Name: d:/xls/class.xlsx
1206  data xel.write;
1207    set sashelp.class;
1208  run;

ERROR: Write access to member XEL.write.DATA is denied.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              369.81k
      OS Memory           21484.00k
      Timestamp           02/10/2017 11:19:00 AM
      Step Count                        190  Switch Count  0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Feb 2017 16:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331581#M2006</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-02-10T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAS in Read only mode</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331587#M2007</link>
      <description>&lt;P&gt;As a side note.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SOAPBOX ON&lt;/P&gt;
&lt;P&gt;It appears that users of this list seem to favor, &amp;nbsp;'proc import' and 'proc export'. I know SAS seems more interested in expanding functionality of these procedures and not &amp;nbsp;adding the same functionality to 'libname' and passthu 'connections', but I don't think 'proc import and proc export' have passed the libname and connection &amp;nbsp;engines functionality &amp;nbsp;yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I prefer libname, and if SAS 'deprecates' the libname and 'connection engines, then I will just turn to R, Python and Perl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SOAPBOX OFF&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 16:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/331587#M2007</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-02-10T16:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open excel with SAS in Read only mode</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/451558#M2224</link>
      <description>&lt;P&gt;Late to the party!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is because&amp;nbsp;an invisible warning box of 'File is already open by other users. You'll have to open it as read-only...' comes first. Such a warning box prevents SAS from launching the Excel Engine. To solve it, simple do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Run the MS Excel application in your local computer. You do not have to open any excel file, not even the file contains data to be imported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)Run your SAS Proc Import program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll see that indeed SAS opens the source excel file in the EXCEL application, and import data into the target data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only trouble is that you'll have to close the excel file and the EXCEL application by yourself. It sounds like after importing from the source file, SAS does not even bother to close it.&amp;nbsp;&lt;img id="manhappy" class="emoticon emoticon-manhappy" src="https://communities.sas.com/i/smilies/16x16_man-happy.png" alt="Man Happy" title="Man Happy" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 15:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Open-excel-with-SAS-in-Read-only-mode/m-p/451558#M2224</guid>
      <dc:creator>SASUser19999</dc:creator>
      <dc:date>2018-04-05T15:33:08Z</dc:date>
    </item>
  </channel>
</rss>

