<?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: Is there a repair function in SAS that's more robust than the standard &amp;quot;proc datasets repai in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805407#M40481</link>
    <description>&lt;P&gt;No repair tool is going to fix data that is totally missing from your table. Your best bet would be to get your IT admin folks to restore from a backup taken before the dataset got damaged.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 23:13:49 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-03-31T23:13:49Z</dc:date>
    <item>
      <title>Is there a repair function in SAS that's more robust than the standard "proc datasets repair"?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805404#M40479</link>
      <description>&lt;P&gt;I had a scheduled job that failed in the middle of an append step to this specific table due to a SAS outage.&amp;nbsp; Now the table is corrupted/broken, and I'd love to be able to repair it, as it has stored data that I might not be able to recreate via a total rerun.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC DATASETS LIBRARY=HAVE MEMTYPE=DATA;&lt;BR /&gt;REPAIR BROKEN_TABLE;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with and without the memtype option, and errors fall along the line of:&lt;/P&gt;
&lt;P&gt;"Expecting page 123456, got page -1 instead."&lt;BR /&gt;"Page validation error while reading HAVE.BROKEN_TABLE.DATA."&lt;/P&gt;
&lt;P&gt;"File HAVE.BROKEN_TABLE.DATA is damaged.&amp;nbsp; I/O processing did not complete."&lt;/P&gt;
&lt;P&gt;"Library member HAVE.BROKEN_TABLE.DATA could not be repaired."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should I just give up on the table or are there other options I can try?&amp;nbsp; Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 22:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805404#M40479</guid>
      <dc:creator>lawatkey</dc:creator>
      <dc:date>2022-03-31T22:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a repair function in SAS that's more robust than the standard "proc datasets repai</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805406#M40480</link>
      <description>&lt;P&gt;What exactly do you mean by a "SAS outage"? Did a server crash? Network fail? Symptoms (other than your append not completing).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS crashes typically there is folder (where depends on installation) that has the work library and utility files, such as might be involved in an append. It might be possible to recover something from there.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 22:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805406#M40480</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-31T22:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a repair function in SAS that's more robust than the standard "proc datasets repai</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805407#M40481</link>
      <description>&lt;P&gt;No repair tool is going to fix data that is totally missing from your table. Your best bet would be to get your IT admin folks to restore from a backup taken before the dataset got damaged.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 23:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805407#M40481</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-31T23:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a repair function in SAS that's more robust than the standard "proc datasets repai</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805413#M40482</link>
      <description>&lt;P&gt;Is it possible to just salvage the non missing/broken pieces of the table?&amp;nbsp; It still has most, if not all, of its size.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 23:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805413#M40482</guid>
      <dc:creator>lawatkey</dc:creator>
      <dc:date>2022-03-31T23:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a repair function in SAS that's more robust than the standard "proc datasets repai</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805416#M40483</link>
      <description>&lt;P&gt;What happens if you try to read it? You may find you can read the table up to a certain point. Let's say your table is damaged at row 101, then this might work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have (obs = 100);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If reading the undamaged portion doesn't work then I recommend the "restore from backup" option. If you don't have backups then I suggest it's time to ensure that this happens going forwards. I've lost count of the number of times backups have helped me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 00:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805416#M40483</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-01T00:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a repair function in SAS that's more robust than the standard "proc datasets repai</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805440#M40484</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I've lost count of the number of times backups have helped me.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Amen to that.&lt;/P&gt;
&lt;P&gt;Been there, done that, have a closet full of T-shirts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All my data (professional and personal) will always reside on several separate media.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 07:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805440#M40484</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-01T07:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a repair function in SAS that's more robust than the standard "proc datasets repai</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805441#M40485</link>
      <description>&lt;P&gt;Do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data salvage;
set damaged;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and see how long it runs, and if the new dataset has observations. Post the complete log from that (all code and messages).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 07:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/805441#M40485</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-01T07:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a repair function in SAS that's more robust than the standard "proc datasets repai</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/807235#M40531</link>
      <description>&lt;P&gt;Typically if&amp;nbsp; &amp;nbsp;running SAS jobs gets stopped for whatever reason, , the temporary files of that job will continue to exist&amp;nbsp;in the SAS WORK library until they are deleted / cleaned up.&lt;BR /&gt;Scheduled jobs typically create log files at some other permanent location. If this is applicable to your case too, using this log file you can identify the corresponding files from the SAS WORK library and the best option would be to re run&amp;nbsp; the remaining steps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try using R or Python to read data from that corrupt dataset.&lt;BR /&gt;As the job has failed while running, there would nothing to restore from the backup.&amp;nbsp;&lt;BR /&gt;Restoration from backup may give the files from previous run.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 19:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-repair-function-in-SAS-that-s-more-robust-than-the/m-p/807235#M40531</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-04-11T19:37:32Z</dc:date>
    </item>
  </channel>
</rss>

