<?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: locking a SAS dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/locking-a-SAS-dataset/m-p/679702#M205268</link>
    <description>&lt;P&gt;You can code a loop for the LOCK statement that continues with WAITing steps in between until it gets a zero return code in macro variable &lt;SPAN&gt;SYSLCKRC&lt;/SPAN&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 12:54:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-08-27T12:54:52Z</dc:date>
    <item>
      <title>locking a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/locking-a-SAS-dataset/m-p/679689#M205265</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to serialize update access to a SAS dataset across a series of concurrent jobs. Each one only requires exclusive access for a few seconds but Murphy arranged for two to need it at the same time this morning.&amp;nbsp; One failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought the lock statement might work but there isn't a wait option for it.&amp;nbsp; So I hoped there was a lock function but couldn't find one.&amp;nbsp; That would be handy in a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how has this been done in the past?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 12:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/locking-a-SAS-dataset/m-p/679689#M205265</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-08-27T12:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: locking a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/locking-a-SAS-dataset/m-p/679702#M205268</link>
      <description>&lt;P&gt;You can code a loop for the LOCK statement that continues with WAITing steps in between until it gets a zero return code in macro variable &lt;SPAN&gt;SYSLCKRC&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 12:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/locking-a-SAS-dataset/m-p/679702#M205268</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-27T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: locking a SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/locking-a-SAS-dataset/m-p/679743#M205283</link>
      <description>&lt;P&gt;Thanks, Kurt.&amp;nbsp; That could work.&amp;nbsp; Will work out the details.&amp;nbsp; If push comes to shove I can always use a semaphore file.&amp;nbsp; Was just trying to avoid that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 14:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/locking-a-SAS-dataset/m-p/679743#M205283</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-08-27T14:38:57Z</dc:date>
    </item>
  </channel>
</rss>

