<?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: SAS stored macro - VBA - &amp;quot;lock is not available&amp;quot; error in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280358#M1869</link>
    <description>&lt;P&gt;I use stored compiled macros:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001328775.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001328775.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But You have a reason, i'll store my tables in Work library, i just wanted to have a possibility to look on tables thrue the SAS Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some other tables i use to retrieve information from different libraries and change rows if needed, so i need to drop the lock anyway.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 09:04:07 GMT</pubDate>
    <dc:creator>gabriel_k</dc:creator>
    <dc:date>2016-06-27T09:04:07Z</dc:date>
    <item>
      <title>SAS stored macro - VBA - "lock is not available" error</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280350#M1867</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;working on an application in Excel that generates charts and tables from the tables previously analysed&amp;nbsp;by SAS. I use VBA (Windows client and &lt;SPAN&gt;IOM Bridge connection&lt;/SPAN&gt;) to run SAS stored macro&amp;nbsp;and then getting results with ADODB. Once running the code SAS tables are locked even if the Workspace was closed and i'm getting&amp;nbsp;&amp;nbsp;"lock is not available" error. How can i solve this problem ? (basicly i need to unlock the tables just to delete them).&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 08:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280350#M1867</guid>
      <dc:creator>gabriel_k</dc:creator>
      <dc:date>2016-06-27T08:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS stored macro - VBA - "lock is not available" error</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280355#M1868</link>
      <description>&lt;P&gt;I guess you meant "stored process".&lt;/P&gt;
&lt;P&gt;Do you really need to update persistent files from the stored process?&lt;/P&gt;
&lt;P&gt;Or do you simply create tables for transfer to Excel in a location other than WORK? In which case, I'd move that to WORK to avoid unnecessary collisions.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 08:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280355#M1868</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-27T08:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS stored macro - VBA - "lock is not available" error</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280358#M1869</link>
      <description>&lt;P&gt;I use stored compiled macros:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001328775.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001328775.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But You have a reason, i'll store my tables in Work library, i just wanted to have a possibility to look on tables thrue the SAS Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some other tables i use to retrieve information from different libraries and change rows if needed, so i need to drop the lock anyway.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 09:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280358#M1869</guid>
      <dc:creator>gabriel_k</dc:creator>
      <dc:date>2016-06-27T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS stored macro - VBA - "lock is not available" error</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280362#M1870</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/58279"&gt;@gabriel_k&lt;/a&gt; wrote:&lt;BR /&gt;..... i just wanted to have a possibility to look on tables thrue the SAS Guide.
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is probably the source of your problems. Viewing a dataset through EG will always prevent the lock that is needed for update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just need to update specific parts of datasets, SAS/SHARE might help (if you have it licensed and set up).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My method to prevent ERRORs caused by open datasets is specific to UNIX. To update a dataset, I do the update in WORK, then I use the operating system to remove the link (directory entry) to the file (UNIX rm command), and then recreate the dataset from the table in WORK.&lt;/P&gt;
&lt;P&gt;This is possible because the rm removes the reference, but not the file. Only when a file is found to have no further reference defined, the physical data is removed once the last handle closes.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 09:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/SAS-stored-macro-VBA-quot-lock-is-not-available-quot-error/m-p/280362#M1870</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-27T09:22:53Z</dc:date>
    </item>
  </channel>
</rss>

