나루다루

SAS BASE Q64. keep 본문

Study/SAS BASE

SAS BASE Q64. keep

나루다루 2018. 11. 2. 00:37
728x90
반응형

QUESTION NO: 64

After a SAS program is submitted, the following is written to the SAS log:

105 data january;

106 set allmonths(keep = product month num_sold cost);

107 if month = 'Jan' then output january;

108 sales = cost * num_sold;

109 keep = product sales;

ERROR 22-322: Syntax error, expecting one of the following:

!, !!, &, *,**, +, -,/, <,< =, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR,^=,|,II,

110 run;

 

What changes should be made to the KEEP statement to correct the errors in the LOG?

 

A. keep product sales;

B. keep product, sales;

C. keep = product, sales;

D. keep = (product sales);

 

 

Answer: A





# 문제 풀이

 - 109번 줄에서 에러가 났다. 

 - keep문은 = 를 쓰는게 아니라 띄어쓰기로 나열한다.

728x90
반응형

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

SAS BASE Q66. ods html  (0) 2018.11.02
SAS BASE Q65. cat & catx & !!  (0) 2018.11.02
SAS BASE Q63. first [수정]  (0) 2018.11.02
SAS BASE Q62. ??  (0) 2018.11.02
SAS BASE Q61. 정렬(sort)  (0) 2018.11.01
Comments