<?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: A lock is not available for dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252417#M47891</link>
    <description>Quite large environment I guess. &lt;BR /&gt;If you haven't already done so, separate the historical complete data from the user access data (aka data marts).&lt;BR /&gt;Still, you need to consider locking problems in the user access area. What kind of clients do you use? If you can limit access through the server, there are some actions that can throw out user that is locking the table.&lt;BR /&gt;Another option is to consider another storage engine. With the volumes you are describing SAS/SHARE may not be feasible. SAS/SPD Server has a more intelligent and much more efficient way to handle concurrent access.</description>
    <pubDate>Thu, 25 Feb 2016 16:19:51 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-02-25T16:19:51Z</dc:date>
    <item>
      <title>A lock is not available for dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252087#M47758</link>
      <description>&lt;P&gt;I am constantly getting this error "&lt;SPAN&gt;A lock is not available for dataset" when data set is writing or some body has opened the data set. I wonder if there is an effective solution to overcome this or to know if the data set is in use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 17:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252087#M47758</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-24T17:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252343#M47869</link>
      <description>&lt;P&gt;One way to test the availibilty of a dataset is to try opening it. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 DSID=open('work.table');
 if DSID then putlog 'Unlocked';
 else         putlog 'Locked';
 RC=close(DSID);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need access while writes are taking place, SAS/SHARE might be your answer.&lt;/P&gt;&lt;P&gt;It allows just this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 09:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252343#M47869</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-02-25T09:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252354#M47872</link>
      <description>&lt;P&gt;Please describe your environment.&lt;/P&gt;
&lt;P&gt;What kind of data, and access patterns to the data do you have?&lt;/P&gt;
&lt;P&gt;What kind of updates do you do, frequency?&lt;/P&gt;
&lt;P&gt;Data volumes etc.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 12:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252354#M47872</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-25T12:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252401#M47877</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;&amp;nbsp; Windows environment. This is related to financial data such customer information, transactions etc. &amp;nbsp;The programs are scheduled to run daily, hence, they are updated daily. Some programs also create historical data (appending today's data to yesterday;s). &amp;nbsp;Data records are in hundred of millions. &amp;nbsp;When I am creating some ad hoc report using the permanent data set that is currently being written by the program, I get this error. I suppose I have to wait until it finished buliding the data set.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 15:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252401#M47877</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-25T15:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252417#M47891</link>
      <description>Quite large environment I guess. &lt;BR /&gt;If you haven't already done so, separate the historical complete data from the user access data (aka data marts).&lt;BR /&gt;Still, you need to consider locking problems in the user access area. What kind of clients do you use? If you can limit access through the server, there are some actions that can throw out user that is locking the table.&lt;BR /&gt;Another option is to consider another storage engine. With the volumes you are describing SAS/SHARE may not be feasible. SAS/SPD Server has a more intelligent and much more efficient way to handle concurrent access.</description>
      <pubDate>Thu, 25 Feb 2016 16:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-dataset/m-p/252417#M47891</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-25T16:19:51Z</dc:date>
    </item>
  </channel>
</rss>

