|
|
楼主

楼主 |
发表于 2010-11-13 18:41:08
|
只看该作者
跟crakman做sas base认证试题(68)
From crackman's blog on Baidu
<p><font size="4" face="宋体">70.After a SAS program is submitted, the following is written to the SAS log:<br>
<br>
105 data WORK.JANUARY;<br>
106 set WORK.ALLYEAR(keep=Product Month Quantity Cost);<br>
107 if Month='JAN' then output WORK.JANUARY;<br>
108 Sales=Cost * Quantity;<br>
109 drop=Month Quantity Cost; <br>
-----<br>
22<br>
ERROR 22-322: Syntax error, expecting one of the following: !,<br>
!!, &, *, **, +, -,<br>
, <=, <>, =, >, >=,<br>
AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,<br>
NOTIN, OR, ^=, |, ||, ~=.<br>
110 run;<br>
<br>
What data set option could be attached to WORK.JANUARY to replace the DROP statement that generated the error in the log?</font></p>
<p><font size="4" face="宋体"> A. (drop Month Quantity Cost)<br>
B. (drop Month, Quantity, Cost)<br>
C. (drop=Month, Quantity, Cost)<br>
D. (drop=Month Quantity Cost)</font></p>
<p><font size="4" face="宋体">Answer: D</font></p>
<p><font size="4" face="宋体">DROP语句,在DATA STATEMENT中,不需要等号<br>
在SET 语句中,需要括号以及等号。</font></p> <a href="http://hi.baidu.com/crack%5Fman/blog/item/0e1e1cca054ab529b700c8c6.html">阅读全文</a>
<br/><b>类别:</b><a href="http://hi.baidu.com/crack%5Fman/blog/category/%B8%FAcrackman%D7%F6sas%20base%C8%CF%D6%A4%CA%D4%CC%E2">跟crackman做sas base认证试题</a> <a href="http://hi.baidu.com/crack%5Fman/blog/item/0e1e1cca054ab529b700c8c6.html#comment">查看评论</a> |
|