SAS Base, A00-211 Crambible
SAS 베이스 자격증
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}.
문법 에러의 원인을 찾는 문제인데요.
array는 keep option과 같이 나올 수 없는 문법이라서 B.
Answer: B
반응형
'SAS > Base Programmer' 카테고리의 다른 글
[A00-211, Crambible] SAS Q24 - WEEKDAY(변수명) (0) | 2017.05.26 |
---|---|
[A00-211, Crambible] SAS Q23 - wild card (0) | 2017.05.26 |
[A00-211, Crambible] SAS Q21 - do / while (비슷한문제 12번 참고) (0) | 2017.05.24 |
[A00-211, Crambible] SAS Q20 - PDV / output (1) | 2017.05.24 |
[A00-211, Crambible] SAS Q19 - sum (a+b) (0) | 2017.05.24 |