<?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: Lock is not available in Work library Datasets in SAS 9.3 on Windows environment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592370#M169832</link>
    <description>&lt;P&gt;Please confirm with your server team that this drive is NOT being backed up and hence there should be no third-party tools locking files. There is absolutely no need to backup SAS work drives.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Sep 2019 05:28:41 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-09-28T05:28:41Z</dc:date>
    <item>
      <title>Lock is not available in Work library Datasets in SAS 9.3 on Windows environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592138#M169742</link>
      <description>Hi,&lt;BR /&gt;I am getting an intermittent error of "A lock is not available on Work.XXXXX". The dataset name changes and not always I get this error. But invariably once or twice a day I will get this problem and it is always on the datasets of Work library.&lt;BR /&gt;I have already opened a communication with the server infra team to check whether any 3rd party tool is accessing these files (like backup, scan etc.).&lt;BR /&gt;&lt;BR /&gt;I have also checked the options like&amp;nbsp;FILELOCKWAIT to make sure that instead of failing instantaneously, the system waits for some time to get the lock. But since I am using SAS 9.3; the&amp;nbsp;FILELOCKWAIT system option is not available to me and the LIBNAME option does not work for WORK library.&lt;BR /&gt;&lt;BR /&gt;I am looking for:&lt;BR /&gt;1) Either a way to identify the process that is creating this lock in Windows environment.&lt;BR /&gt;2) Or, a feasible way (since it can be any of the work dataset, using a trylock type macro for all the datasets is very difficult to implement) to make the system wait for n seconds before throwing the error.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your time.</description>
      <pubDate>Fri, 27 Sep 2019 11:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592138#M169742</guid>
      <dc:creator>SaugataM</dc:creator>
      <dc:date>2019-09-27T11:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lock is not available in Work library Datasets in SAS 9.3 on Windows environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592146#M169746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292617"&gt;@SaugataM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you test the LOCK statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p0pc4mpj7xzxs4n1257fgz2tkuyb.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p0pc4mpj7xzxs4n1257fgz2tkuyb.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 12:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592146#M169746</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2019-09-27T12:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lock is not available in Work library Datasets in SAS 9.3 on Windows environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592160#M169750</link>
      <description>&lt;P&gt;Here is a use case for the Lock statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/51/275.html" target="_blank"&gt;http://support.sas.com/kb/51/275.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the %trylock macro in a conflicting process&amp;nbsp; which waits for the other process till either it releases the lock on the dataset or until a configurable time period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the command to unlock the dataset once the processing is done since the macro explicitly locks the dataset, it is safe to clear the lock once the processing is done.&lt;/P&gt;&lt;PRE&gt;lock rcli_.rcli_control_master clear;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 14:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592160#M169750</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-09-27T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lock is not available in Work library Datasets in SAS 9.3 on Windows environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592246#M169792</link>
      <description>&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I have hundreds of datasets getting created in the work library. Encasing all of them in a trylock macro in an already deployed product is going to be very tough, if not impossible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is why I am looking for a system or library wise option.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592246#M169792</guid>
      <dc:creator>SaugataM</dc:creator>
      <dc:date>2019-09-27T17:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lock is not available in Work library Datasets in SAS 9.3 on Windows environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592370#M169832</link>
      <description>&lt;P&gt;Please confirm with your server team that this drive is NOT being backed up and hence there should be no third-party tools locking files. There is absolutely no need to backup SAS work drives.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2019 05:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-is-not-available-in-Work-library-Datasets-in-SAS-9-3-on/m-p/592370#M169832</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-28T05:28:41Z</dc:date>
    </item>
  </channel>
</rss>

