<p><font size="4">49.The following SAS program is submitted:<br>
<br>
data WORK.TOTALSALES(keep=MonthSales{12}); <br>
set WORK.MONTHLYSALES(keep=Year Product Sales); <br>
array MonthSales{12}; <br>
do i=1 to 12; <br>
MonthSales{i}=Sales;<br>
end;<br>
drop i;<br>
run;<br>
<br>
The program fails execution due to syntax errors.<br>
What is the cause of the syntax error? <br>
A. An array cannot be referenced on a keep= data set option.<br>
B. The keep= data set option should be (keep=MonthSales*). <br>
C. The keep= data set option should be the statement KEEP MonthSales{12}.<br>
D. The variable MonthSales does not exist.<br>
<br>
Answer:A</font></p>
<p><font size="4">本题考察的是数组以及KEEP语句。<br>
KEEP语句中必须是具体变量,不能是数组。<br>
另外数组MonthSales{12},并没有说明这个数组内部的成员名称。通过下标来引用数组成员的。</font></p> <a href="http://hi.baidu.com/crack%5Fman/blog/item/cb239827dbe6f854ac34de20.html">阅读全文</a>