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 


반응형

+ Recent posts