<?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: re: Error Message in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892833#M352663</link>
    <description>&lt;P&gt;I'd suggest talking to your SAS administrator. Are you the only user impacted by this problem or are other users as well? The fact that it is an intermittent problem and it is a different dataset each time could point to SAS server IO problems. Your administrator should be able to investigate this.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 00:58:47 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-09-06T00:58:47Z</dc:date>
    <item>
      <title>Error: A lock is not available Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892570#M352528</link>
      <description>&lt;P&gt;Hi.....I am getting this error message:&amp;nbsp;ERROR: A lock is not available for WORK.ListA. I have tried rebooting and sometimes its a different dataset that the error message pops up. I ran this same code before and never received this error message. Is this something that is on the SAS end or the Server where the datasets are stored. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 07:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892570#M352528</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2023-09-05T07:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: re: Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892635#M352566</link>
      <description>&lt;P&gt;This error is typically caused by another SAS tool or process having the SAS dataset open. Do you by any chance have this table open in a view-type window in SAS EG, SAS Studio or SAS Windowing System. If so you need to close it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 21:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892635#M352566</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-04T21:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: re: Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892647#M352572</link>
      <description>&lt;P&gt;Hi SASKiwi.....I run the code in SAS Enterprise and have been running the same code many times before. When I reboot it seems that dataset where a&amp;nbsp;&lt;SPAN&gt;lock is not available for WORK changes. From the log, this error occurs during the process of deleting the datasets.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;2748       proc datasets nolist;
2749       	delete PostalCodesCorrections AddressList AddressList1 AddressList2 AddressList3 AddressList4 AddressList5 AddressList6
2749     ! AddressList7 AddressList8 CoRequisite AddressList9 AddressList10 ;

NOTE: Deleting WORK.POSTALCODESCORRECTIONS (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST1 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST2 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST3 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST4 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST5 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST6 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST7 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST8 (memtype=DATA).
NOTE: Deleting WORK.COREQUISITE (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST9 (memtype=DATA).
NOTE: Deleting WORK.ADDRESSLIST10 (memtype=DATA).
ERROR: A lock is not available for WORK.ADDRESSLIST10.DATA.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Sep 2023 22:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892647#M352572</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2023-09-04T22:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: re: Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892659#M352581</link>
      <description>&lt;P&gt;The locking issue normally occurs if another SAS session locks the table or - depending on your settings - if it's open in your client (like in EG).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using SAS EG make sure to have setting "Unlock all open data before running code".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1693873144113.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87607i5FD98A042BE00DD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1693873144113.png" alt="Patrick_0-1693873144113.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because this is a WORK table it can't be another SAS session that locks the table. If the issue still exists even with the option set to unlock all data then the only other reason I can think of is some virus scanner or backup process that gets in the way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if the unlock option helps or not and we continue from there.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 01:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892659#M352581</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-09-05T01:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: re: Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892736#M352618</link>
      <description>&lt;P&gt;Hi Patrick....The version of Enterprise Guide I have is 7.1 . I don't have&amp;nbsp;&lt;SPAN&gt;"Unlock all open data before running code" as an option. Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="twildone_0-1693920336096.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87623i94480C01531B29E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="twildone_0-1693920336096.png" alt="twildone_0-1693920336096.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 13:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892736#M352618</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2023-09-05T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: re: Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892825#M352660</link>
      <description>&lt;P&gt;I certainly would reduce the time for:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1693957625345.png" style="width: 452px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87641iCE102D9D0E18F94A/image-dimensions/452x33?v=v2" width="452" height="33" role="button" title="Patrick_0-1693957625345.png" alt="Patrick_0-1693957625345.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there any option in EG7.1 to automatically open (or not open) tables created by a run? If so make sure you don't automatically open such tables.&lt;/P&gt;
&lt;P&gt;No more sure how this looks in EG7.1 but here from EG8: Make sure to not set the default to Table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1693958031924.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87643iF5DB05DF9DC96DF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_1-1693958031924.png" alt="Patrick_1-1693958031924.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The usual question for "it used to work but doesn't anymore" issues is: What changed?&lt;/P&gt;
&lt;P&gt;If it's not some EG setting then the most likely culprit in my experience is a virus scanner that doesn't exclude *.sas7b* files. I suggest you contact your SAS Admin and raise this issue. If it's a virus scanner then other people/processes should also have such intermittent problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 00:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892825#M352660</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-09-06T00:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: re: Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892833#M352663</link>
      <description>&lt;P&gt;I'd suggest talking to your SAS administrator. Are you the only user impacted by this problem or are other users as well? The fact that it is an intermittent problem and it is a different dataset each time could point to SAS server IO problems. Your administrator should be able to investigate this.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 00:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892833#M352663</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-06T00:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: re: Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892924#M352704</link>
      <description>&lt;P&gt;Hi Patrick.....I agree something has changes....I reached out to the IT department as more than likely they updated the system.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 13:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-A-lock-is-not-available-Message/m-p/892924#M352704</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2023-09-06T13:06:38Z</dc:date>
    </item>
  </channel>
</rss>

