<?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: Automatic variable _Error_ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Automatic-variable-Error/m-p/389058#M93291</link>
    <description>&lt;P&gt;The _N_ and _ERROR_ variables both have an implicit drop flag and exist only in the PDV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But yes, you can assign them to variables in an assignment statement&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 08:12:07 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-08-18T08:12:07Z</dc:date>
    <item>
      <title>Automatic variable _Error_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automatic-variable-Error/m-p/389036#M93283</link>
      <description>&lt;P&gt;I just have one quick question about _ERROR_&lt;/P&gt;&lt;P&gt;Two automatic variables, _N_ and _ERROR_ will be created in project data vector but not in the output of Data step execution.&amp;nbsp;&lt;BR /&gt;And I can use put statement if the _ERROR_ = 1 to locate the program in the data set.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So can I use _ERROR_ for assignmnet statement or any other way to apply this variable?&lt;/P&gt;&lt;P&gt;I cannot figure this out by running the code or search the answer online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 04:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automatic-variable-Error/m-p/389036#M93283</guid>
      <dc:creator>LoveSAS09</dc:creator>
      <dc:date>2017-08-18T04:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic variable _Error_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automatic-variable-Error/m-p/389048#M93287</link>
      <description>&lt;P&gt;You can assign _ERROR_ to a variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check next code resulting with _ERROR_ = 1&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  x=8;
  y=0;
  result = x/y;
  N = _N_;
  ERR = _ERROR_;
  put _ERROR_=  _N_= ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2017 06:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automatic-variable-Error/m-p/389048#M93287</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-18T06:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic variable _Error_</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automatic-variable-Error/m-p/389058#M93291</link>
      <description>&lt;P&gt;The _N_ and _ERROR_ variables both have an implicit drop flag and exist only in the PDV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But yes, you can assign them to variables in an assignment statement&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 08:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automatic-variable-Error/m-p/389058#M93291</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-08-18T08:12:07Z</dc:date>
    </item>
  </channel>
</rss>

