문제풀이/기타
SAS BASE Q22. ???
나루다루
2018. 3. 1. 22:05
728x90
QUESTION NO: 22
The following SAS program is submitted:
data work.totalsales (keep = monthsales{12});
set work.monthlysales (keep = year product sales);
array monthsales{12);
do i = 1 to 12; monthsales{i) = sales;
end;
run;
The program fails execution due to syntax errors. What is the cause of the syntax error?
A. The variable MONTHSALES does not exist.
B. An array cannot be referenced on a KEEP data set option.
C. The KEEP= data set option should be (KEEP = MONTHSALES).
D. The KEEP= data set option should be the statement KEEP MONTHSALES{12}.
Answer: B
728x90
반응형