标题: 跟crakman做sas base认证试题(6) [打印本页] 作者: shiyiming 时间: 2010-11-11 00:05 标题: 跟crakman做sas base认证试题(6) From crackman's blog on Baidu
<p><font size="4">6.After a SAS program is submitted, the following is written to the SAS log:<br>
<br>
101 data WORK.JANUARY;<br>
102 set WORK.ALLYEAR(keep=product month num_Sold Cost);<br>
103 if Month='Jan' then output WORK.JANUARY;<br>
104 Sales=Cost * Num_Sold;<br>
105 keep=Product Sales;<br>
-----<br>
22 <br>
ERROR 22-322: Syntax error, expecting one of the following: !,!!, &, *, **, +, -, , <=, <>, =, >, >=,<br>
AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,NOTIN, OR, ^=, |, ||, ~=.<br>
106 run;<br>
<br>
What changes should be made to the KEEP statement to correct the errors in the LOG?</font></p>
<p><font size="4"> A. keep=(Product Sales);<br>
B. keep Product, Sales; <br>
C. keep=Product, Sales; <br>
D. keep Product Sales;</font></p>
<p><font size="4">Answer: D<br>
本文属于博客:</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">本道题考察的是KEEP语句的语法问题<br>
在括号内就是KEEP=<br>
如果不是就是KEEP </font></p> <a href="http://hi.baidu.com/crack%5Fman/blog/item/103e72cf3067b10fbf09e64e.html">阅读全文</a>