<?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 STAGING.BASE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-STAGING-BASE/m-p/727062#M226059</link>
    <description>&lt;P&gt;You do that in a scheduler by setting appropriate conditions.&lt;/P&gt;
&lt;P&gt;Or you create a master script that runs all programs in succession.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 11:18:24 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-03-17T11:18:24Z</dc:date>
    <item>
      <title>A lock is not available for STAGING.BASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-STAGING-BASE/m-p/727055#M226053</link>
      <description>&lt;P&gt;Good day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several programs in a batch my aim is to run them at the same time, all these programs are writing to the same dataset however one or two write successfully other fails because of&amp;nbsp; a&amp;nbsp;lock is not available for STAGING.BASE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I researched and get filelockwait but did not work,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname staging '/sas/prd/mrad/mrd7mdlintu/projects/langanat/rbc_data_quality/sasdata/staging' filelockwait=300;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also got&amp;nbsp;%macro trylock but I don't know how to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I kindly need help to be able to tell programs to wait for other programs to finish loading before they start loading to staging.base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you in-advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Langalife&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-STAGING-BASE/m-p/727055#M226053</guid>
      <dc:creator>langalife</dc:creator>
      <dc:date>2021-03-17T10:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for STAGING.BASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-STAGING-BASE/m-p/727062#M226059</link>
      <description>&lt;P&gt;You do that in a scheduler by setting appropriate conditions.&lt;/P&gt;
&lt;P&gt;Or you create a master script that runs all programs in succession.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 11:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-STAGING-BASE/m-p/727062#M226059</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-17T11:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for STAGING.BASE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-STAGING-BASE/m-p/727071#M226062</link>
      <description>&lt;P&gt;A simple approach will be for each of the process to write to its own dataset.&lt;BR /&gt;Later a batch process can append all of those individual datasets into the desired dataset.&lt;/P&gt;&lt;P&gt;As an alternative explore using SAS SHARE or writing to an RDBMS database.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 12:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-lock-is-not-available-for-STAGING-BASE/m-p/727071#M226062</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-17T12:05:32Z</dc:date>
    </item>
  </channel>
</rss>

