<?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 datasets delete not working when using libname with excel engine in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140668#M37601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be a tech support question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I typically use a proc sql drop table instead to clear out my tables and haven't had any issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 18:30:35 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-09-11T18:30:35Z</dc:date>
    <item>
      <title>proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140665#M37598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a libname statement to access an excel file.&amp;nbsp; In the past, we have found that when writing out to an excel file using this methodology the data is not always replaced.&amp;nbsp; To avoid that problem, we use a proc datasets and then delete the dataset before trying to replace it.&amp;nbsp; In this particular program, I have five different datasets that I am writing out to the excel file.&amp;nbsp; Three of them are cleared with the delete statement, two are not.&amp;nbsp; The two that are not are large (about 96,000 and 19,000 records).&amp;nbsp; The following is the code I am running:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;LIBNAME&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; WrkBk EXCEL &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'network location\Output Excel File.xlsm'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;DATASETS&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;LIB&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=WrkBk;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;DELETE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; BigData1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;QUIT&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;Data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; WrkBk.BigData1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; work.BigData1Ready;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;LIBNAME&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; WrkBk &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;CLEAR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Excel 2010.&amp;nbsp; SAS 9.2 TS Level 2M3.&amp;nbsp; After the delete statement executes, the "dataset" BigData1 no longer is in the list of datasets.&amp;nbsp; However, if the excel file is accessed before the data step that populates the excel file is executed, the data is still there.&amp;nbsp; The three smaller tables all clear themselves out as I expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance will be greatly appreciated.&amp;nbsp; Currently we are manually deleting the data before we run the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 15:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140665#M37598</guid>
      <dc:creator>CurlerBob</dc:creator>
      <dc:date>2014-09-11T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140666#M37599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you open that spreadsheet dataset using excel than excel copies all data into memory&lt;BR /&gt;Opening the same excel thereafter will read the data out of the spreadsheetdataset not form the memory in excel.&lt;/P&gt;&lt;P&gt;Do you want to protect that spreadsheet you will need to implement locking/enqueing on the Windows system.&lt;/P&gt;&lt;P&gt;Prevent any Excel user reading that file before you want to update that. Blocks the update of updating when anyone has it opened for reading.&lt;/P&gt;&lt;P&gt;This enqueing is not present in Windows by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It all works as known is behaving (works as designed).&amp;nbsp; What is your problem?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 17:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140666#M37599</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-11T17:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140667#M37600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I didn't explain the problem fully enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting two differnet behaviors from the proc datasets; delete statement.&amp;nbsp; With the three smaller datasets, the data is deleted from the excel file when the statement is submitted.&amp;nbsp; That is as I expect.&amp;nbsp; However, when the same statements are executed on the larger set of data, the data is not deleted from the excel file.&amp;nbsp; That is not as I expect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 18:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140667#M37600</guid>
      <dc:creator>CurlerBob</dc:creator>
      <dc:date>2014-09-11T18:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140668#M37601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be a tech support question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I typically use a proc sql drop table instead to clear out my tables and haven't had any issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 18:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140668#M37601</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-11T18:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140669#M37602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is see:&lt;/P&gt;&lt;P&gt;- Storage location on network drive (Windows)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this is why I am suspicious on sharing issues.&lt;/P&gt;&lt;P&gt;- You had problems before as sometimes the tables was not replaced (normally delete-write after rename) &lt;/P&gt;&lt;P&gt;- You still have problems for deleting bigger tables (excel sheetnames).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to eliminated possible causes. &lt;BR /&gt;Check whether the same failure also is occurring when that excel file is on a local drive not on a network drive. &lt;/P&gt;&lt;P&gt;Can you replay this all on a local machine than you can also send that as a case to TS.&lt;BR /&gt;Cross your fingers not getting the answer "migrate to the latest version 9.4"&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 18:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140669#M37602</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-11T18:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140670#M37603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This SAS note appears similar to the problem you are getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/43/060.html"&gt;http://support.sas.com/kb/43/060.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140670#M37603</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-09-11T19:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140671#M37604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n0cfqhcraieg81n1ier2cpp87fnz.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n0cfqhcraieg81n1ier2cpp87fnz.htm"&gt;SAS/ACCESS(R) 9.3 Interface to PC Files: Reference&lt;/A&gt;&amp;nbsp; Is also noted at that level -cautions-.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140671#M37604</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-11T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140672#M37605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar but not quite the same.&amp;nbsp; We had the problem on both a table over and under 65K records.&amp;nbsp; I just reran to see if the tables were still not clearing after we did the manual delete of the lines yesterday.&amp;nbsp; It turns out that now the tables are being deletid with the proc datasets statement.&amp;nbsp; My hypothesis is that there is a formula somewhere inside all of those rows of data and that was causing the issue.&amp;nbsp; I'm still trying to verify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to Jaap, I doubt it is a sharing issue.&amp;nbsp; Only one person really accesses the file and three of the five tables cleared as expected.&amp;nbsp; The other problems we've had in the past have been primarily sorting issues.&amp;nbsp; When accessing an excel file utilizing a libname statement and the excel engine, any existing table appears to be updated rather than replaced.&amp;nbsp; This keeps the original order of the data but will replace the changing data.&amp;nbsp; I suspect that the write out to the excel file is actually utilizing an update sql statement behind the scenes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 19:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140672#M37605</guid>
      <dc:creator>CurlerBob</dc:creator>
      <dc:date>2014-09-11T19:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140673#M37606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sharing caused by persons we could eliminated indeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sharing by a network IO could be an other. A networked drive is classified as "local intranet zone" slightly behaving different as a local drive.&lt;/P&gt;&lt;P&gt;Seen this as UNC names coming back an used (intranet network) or drive letters (local).&lt;/P&gt;&lt;P&gt;With a java run-time I have experienced this made some difference on the jvm behavior. &lt;/P&gt;&lt;P&gt;An other weird error could be by "&lt;A href="http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html" title="http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html"&gt;Opportunistic Locking and Read Caching on Microsoft Windows Networks&lt;/A&gt;" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this moment a would blame the ACE driver. May be a formula instead of data in excel is the trigger.&lt;/P&gt;&lt;P&gt;The ACE driver is the SQL drive like interface for data-connections with Microsoft&amp;nbsp; You can find it with almost every interface.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140673#M37606</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-11T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc datasets delete not working when using libname with excel engine</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140674#M37607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try SQL.&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;drop table x.have ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-datasets-delete-not-working-when-using-libname-with-excel/m-p/140674#M37607</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-09-12T12:22:26Z</dc:date>
    </item>
  </channel>
</rss>

