<?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 ERROR: The open failed because library member library.dataset.DATA is damaged. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110676#M258916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Coder,&lt;/P&gt;&lt;P&gt;Scenario of problem - I have one macro say %callme . this macro is called in one sas code say useme.sas . Now I have many SAS jobs which executes useme.sas code based on some parameters. so at a given time many SAS jobs execute useme.sas which inturn has many calls for macro %callme;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;macro callme logs some details to one SAS dataset (logging.sas7bdat)like username, time of call etc...&amp;nbsp; now when many sas jobs execute and call macro CALLME ; then sometimes I get this error "ERROR: The open failed because library member Library.LOGGING.DATA is damaged." . Although I have filelocks option in my SAS code I still get this error.&lt;/P&gt;&lt;P&gt;Strange thing is that dataset LOGGINGis not damaged and I can open it easily; there is no space issues. and once I rerun my code one by one problem does&amp;nbsp; not appear.&lt;/P&gt;&lt;P&gt;only when there is simultaneous update to dataset LOGGING I get this problem (this is my observation , there could be any other thing which caused this.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me in solving this or point to the cause??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 14:09:14 GMT</pubDate>
    <dc:creator>ucvikas</dc:creator>
    <dc:date>2013-10-11T14:09:14Z</dc:date>
    <item>
      <title>ERROR: The open failed because library member library.dataset.DATA is damaged.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110676#M258916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Coder,&lt;/P&gt;&lt;P&gt;Scenario of problem - I have one macro say %callme . this macro is called in one sas code say useme.sas . Now I have many SAS jobs which executes useme.sas code based on some parameters. so at a given time many SAS jobs execute useme.sas which inturn has many calls for macro %callme;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;macro callme logs some details to one SAS dataset (logging.sas7bdat)like username, time of call etc...&amp;nbsp; now when many sas jobs execute and call macro CALLME ; then sometimes I get this error "ERROR: The open failed because library member Library.LOGGING.DATA is damaged." . Although I have filelocks option in my SAS code I still get this error.&lt;/P&gt;&lt;P&gt;Strange thing is that dataset LOGGINGis not damaged and I can open it easily; there is no space issues. and once I rerun my code one by one problem does&amp;nbsp; not appear.&lt;/P&gt;&lt;P&gt;only when there is simultaneous update to dataset LOGGING I get this problem (this is my observation , there could be any other thing which caused this.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me in solving this or point to the cause??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110676#M258916</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2013-10-11T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The open failed because library member library.dataset.DATA is damaged.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110677#M258917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume from your description that the macro writes this information to common table (Logging.Data is the same for all calling SAS programs).&lt;/P&gt;&lt;P&gt;I'm not sure about this specific error, but the single user Base SAS engine does not&amp;nbsp; handle concurrent read/write requests on a record level. To make your writes/updates consistent you need any the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SAS/SHARE&lt;/LI&gt;&lt;LI&gt;SAS SPD Server&lt;/LI&gt;&lt;LI&gt;External RDBMS &lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110677#M258917</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-10-11T14:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The open failed because library member library.dataset.DATA is damaged.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110678#M258918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;LinusH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;thanks for your reply . but how to know that my BASE SAS engine is 'single user Base SAS engine' . because I can perform simultaneous read from a SAS dataset(some other XYZ dataset) but when it comes to write to the same dataset by same user but in different sessions then I get the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;I thought option filelock will allow it to write to the dataset but apparently it did help in getting the problem solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;If&amp;nbsp; there is no way to handle this with some options then probably RDBMS table is only solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 14:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110678#M258918</guid>
      <dc:creator>ucvikas</dc:creator>
      <dc:date>2013-10-14T14:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The open failed because library member library.dataset.DATA is damaged.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110679#M258919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Base is per default a single user engine, but it allows for simultaneous read operations. But as soon there is any kind of write/delete/update operation, the whole table is locked for other users, or if there is already a read lock, the update operation will fail.&lt;/P&gt;&lt;P&gt;If %callme is the only client you may add some lock checking within that macro, if not the requires lock is available then insert a wait, and try again. Quite manual, but can work for some applications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 14:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-open-failed-because-library-member-library-dataset/m-p/110679#M258919</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-10-14T14:35:22Z</dc:date>
    </item>
  </channel>
</rss>

