<?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 SAS dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115735#M23827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also find it useful to read through the other forum posts on this topic as it pops up frequently - search on the word lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While there are a number of workarounds and tricks to deal with this problem, my own personal view is that SAS should implement a more robust solution that doesn't involve buying additional software like SAS\SHARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I do appreciate that this is complex issue as anyone who is aware of how relational databases handle table/row locking will concur.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 20:29:12 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2013-06-26T20:29:12Z</dc:date>
    <item>
      <title>Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115728#M23820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can lock SAS dataset so that users cannot open it physically in PC SAS or SAS EG and yet be accessed by the SAS programs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue where users keep SAS dataset open and our programs trying to write to the same file. Hence the job errors out. Looking for a way to fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 16:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115728#M23820</guid>
      <dc:creator>helloSAS</dc:creator>
      <dc:date>2013-06-21T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115729#M23821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. add a password to that table.&lt;/P&gt;&lt;P&gt;check dataset option pw=&lt;/P&gt;&lt;P&gt;or proc datasets &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jun 2013 01:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115729#M23821</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-06-22T01:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115730#M23822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that what helloSAS is trying to do is to allow the PC SAS and EG users to run programs against the dataset, but not open it in spreadsheet view.&amp;nbsp; The password won't resolve that because it applies to both.&amp;nbsp; Perhaps helloSAS can clarify the need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 13:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115730#M23822</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-06-24T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115731#M23823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want the datasets to be locked to open it in a spreadsheet view. However the SAS jobs should have it available to read/write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 13:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115731#M23823</guid>
      <dc:creator>helloSAS</dc:creator>
      <dc:date>2013-06-24T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115732#M23824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I was afraid of.&amp;nbsp; To my knowledge, there is no SAS tool that could do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have sufficient administrative rights, you could kill the PC SAS and EG sessions.&amp;nbsp; That will be unlikely to win you any friends among the analysts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A less brutish approach would be to maintain two copies of the data; one that you can update and another that they can read.&amp;nbsp; Then you could use system tools to copy the files when the readers are inactive.&amp;nbsp; Task scheduler can re-try every x-minutes until successful.&amp;nbsp; If the users complain about stale data, you can get them to use peer pressure on the offending analyst(s).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 19:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115732#M23824</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-06-24T19:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115733#M23825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if that's an important feature, you could use sas/share.&lt;/P&gt;&lt;P&gt;It won't allow you to control which bit of sas opens the table and change the rights accordingly, but you can regain control of the datasets without killing sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you have is common btw.&lt;/P&gt;&lt;P&gt;A common way to deal with it is to kill all sas sessions at night unless they have a "save me" flag of some sort (like a specific file in the work directory) so that the nightly data refresh can take place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another method is that when a refresh fails, an automatic email is sent by the refresh job informing users that their data is not there, sorry, with an explanation.&lt;/P&gt;&lt;P&gt;The explanation can include the fact that xyz had the table open...&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 11:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115733#M23825</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2013-06-25T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115734#M23826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would creating views of the data which the users could access help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115734#M23826</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2013-06-25T12:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lock SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115735#M23827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also find it useful to read through the other forum posts on this topic as it pops up frequently - search on the word lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While there are a number of workarounds and tricks to deal with this problem, my own personal view is that SAS should implement a more robust solution that doesn't involve buying additional software like SAS\SHARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I do appreciate that this is complex issue as anyone who is aware of how relational databases handle table/row locking will concur.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 20:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Lock-SAS-dataset/m-p/115735#M23827</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-06-26T20:29:12Z</dc:date>
    </item>
  </channel>
</rss>

