<p><font size="4"> <br>
18.Which statement describes a characteristic of the SAS automatic variable _ERROR_? </font></p>
<p><font size="4"> A. The _ERROR_ variable maintains a count of the number of data errors in a DATA step.<br>
B. The _ERROR_ variable is added to the program data vector and becomes part of the data set being created. <br>
C. The _ERROR_ variable can be used in expressions in the DATA step.<br>
D. The _ERROR_ variable contains the number of the observation that caused the data error.</font></p>
<p><font size="4">Answer: C</font></p>
<p><br>
<font size="4">本文属于博客:</font><a href="http://hi.baidu.com/crack_man/home"><font size="4"><!-- m --><a class="postlink" href="http://hi.baidu.com/crack_man/home">http://hi.baidu.com/crack_man/home</a><!-- m --></font></a><font size="4"> 版权归作者所有,如有转载,请注明出处!未经本作者同意不得用于商业应用。<br>
其他本博客文章均作此声明!</font></p>
<p><font size="4">本题考察的还是自动变量_error_<br>
A._ERROR_变量是用来记录在DATA步中错误处的数量<br>
B._ERROR_变量在PDV中创建并输出到创建的数据集中<br>
C._ERROR_变量可以用于DATA步中的表达式中。<br>
D._ERROR_变量包括在DATA步过程引起错误的观测对象的序列号。</font></p>
<p><font size="4">C是正确,D其实应该是_N_,_N_是观测对象的序列号。B中,_ERROR_在PDV中默认执行DROP操作,所以不会输出到数据集中。<br>
当然你可以创建一个变量来保存_ERROR_的值,例如,K=_ERROR_,因为_ERROR_可以用于表达式执行IF ELSE以及赋值等操作。</font></p> <a href="http://hi.baidu.com/crack%5Fman/blog/item/74efb955f828c308377abe5e.html">阅读全文</a>