<?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 Data step read error handling in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-step-read-error-handling/m-p/77518#M16789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello world! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have faced to next problem. Can I check access permission to the data to read and handle an error (if there is an error)?&lt;/P&gt;&lt;P&gt;For example: I need to know does user, that run SP, have permission to read the source and handle an error if there not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set DATA(obs=0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _error_ ne 0 then do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put NOTE: "ERROR =" _error_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _error_ = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But it does not work =(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2013 08:55:49 GMT</pubDate>
    <dc:creator>n01known</dc:creator>
    <dc:date>2013-01-17T08:55:49Z</dc:date>
    <item>
      <title>Data step read error handling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-read-error-handling/m-p/77518#M16789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello world! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have faced to next problem. Can I check access permission to the data to read and handle an error (if there is an error)?&lt;/P&gt;&lt;P&gt;For example: I need to know does user, that run SP, have permission to read the source and handle an error if there not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set DATA(obs=0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _error_ ne 0 then do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put NOTE: "ERROR =" _error_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _error_ = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', 'courier';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But it does not work =(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 08:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-read-error-handling/m-p/77518#M16789</guid>
      <dc:creator>n01known</dc:creator>
      <dc:date>2013-01-17T08:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data step read error handling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-read-error-handling/m-p/77519#M16790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use the automatic macro variables sysrc and syscc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 09:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-read-error-handling/m-p/77519#M16790</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-01-17T09:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data step read error handling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-read-error-handling/m-p/77520#M16791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I tried to user SYSRC and SYSCC but there is no effect.&lt;/P&gt;&lt;P&gt;Or may be I use them incorrect. If you have an example, it would be a pleasant if you share it &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 13:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-read-error-handling/m-p/77520#M16791</guid>
      <dc:creator>n01known</dc:creator>
      <dc:date>2013-01-17T13:22:08Z</dc:date>
    </item>
  </channel>
</rss>

