나루다루

SAS BASE Q22. ??? 본문

Study/SAS BASE

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
반응형

'Study > SAS BASE' 카테고리의 다른 글

SAS BASE Q24. weekday  (0) 2018.03.01
SAS BASE Q23. _ & %  (0) 2018.03.01
SAS BASE Q21. do / Q12 비교  (0) 2018.03.01
SAS BASE Q20. if & pdv / Q4, Q15와 비교  (0) 2018.03.01
SAS BASE Q19. 결측 & sum [수정] / Q37과 비교  (0) 2018.03.01
Comments