<?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: Dictionary.columns useless for corrupt dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433142#M107366</link>
    <description>&lt;P&gt;Have you been able to identify which dataset is the problem? Or at least which library it is in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the ever popular: is this repeatable with the same data set causing the same error?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 15:46:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-02-01T15:46:27Z</dc:date>
    <item>
      <title>Dictionary.columns useless for corrupt dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433038#M107320</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a program that reads all metadata of all SAS datasets that reside in the network and the SAS server.&lt;/P&gt;&lt;P&gt;The program automatically assigns libraries for all paths in which datasets have been stored.&lt;/P&gt;&lt;P&gt;At the same time it reads the dataset properties in a step where dictionary.columns is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens successfully, however I bumped into a corrupt dataset that cannot be opened and then below happens.&lt;/P&gt;&lt;P&gt;Program stops with this error just for 1 dataset.&lt;/P&gt;&lt;P&gt;How can I circumvent that ?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; An exception has been encountered.&lt;/P&gt;&lt;P&gt;Please contact technical support and provide them with the following traceback information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS task name is [SQL (2)]&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; Write Access Violation SQL (2)&lt;/P&gt;&lt;P&gt;Exception occurred at (00D2968F)&lt;/P&gt;&lt;P&gt;Task Traceback&lt;/P&gt;&lt;P&gt;Address&amp;nbsp;&amp;nbsp; Frame&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (DBGHELP API Version 4.0 rev 5)&lt;/P&gt;&lt;P&gt;0000000000D2968F&amp;nbsp; 000000000E20C960&amp;nbsp; tkmk:tkBoot+0x1794F&lt;/P&gt;&lt;P&gt;0000000000D278C0&amp;nbsp; 000000000E20C9C0&amp;nbsp; tkmk:tkBoot+0x15B80&lt;/P&gt;&lt;P&gt;00000000022F5947&amp;nbsp; 000000000E20C9C8&amp;nbsp; sashost:Main+0x1E4B7&lt;/P&gt;&lt;P&gt;000000000995BDF4&amp;nbsp; 000000000E20CA58&amp;nbsp; sasyoio:tkvercn1+0x1ADB4&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 08:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433038#M107320</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-02-01T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary.columns useless for corrupt dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433045#M107324</link>
      <description>&lt;P&gt;First of all, I'd follow the advice and open a track with SAS TS, as SAS should give a message for a damaged dataset and not crash.&lt;/P&gt;
&lt;P&gt;Then I'd rename the dataset, so that your program won't pick it up, but it will still be available for the support people.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 09:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433045#M107324</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-01T09:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary.columns useless for corrupt dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433142#M107366</link>
      <description>&lt;P&gt;Have you been able to identify which dataset is the problem? Or at least which library it is in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the ever popular: is this repeatable with the same data set causing the same error?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 15:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433142#M107366</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-01T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary.columns useless for corrupt dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433149#M107371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have. For the moment I've skipped it. Luckily enough there was only 1 file&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I think I need to build in something to prevent this specific file and similar files from being scanned for metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should try to open it. If it can't be opened, it should be skipped. First thing that comes to mind is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%SYSFUNC(FOPEN(file ref));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know if this works for datasets... but i 'll check.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 16:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433149#M107371</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2018-02-01T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary.columns useless for corrupt dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433406#M107447</link>
      <description>&lt;P&gt;Did you have a look at the file before you deleted/renamed it?&lt;/P&gt;
&lt;P&gt;You could modify the initial find command I gave you to exclude files below a certain size, for instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OTOH, if this happens quote rarely, just see the resulting ERROR as a means to find "dead" dataset files you can weed out.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dictionary-columns-useless-for-corrupt-dataset/m-p/433406#M107447</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-02T06:50:07Z</dc:date>
    </item>
  </channel>
</rss>

