나루다루

SAS BASE Q41. array 본문

Study/SAS BASE

SAS BASE Q41. array

나루다루 2018. 10. 31. 01:41
728x90
반응형

QUESTION NO: 41

The following SAS program is submitted:

data work.test;

set work.staff (keep = jansales febsales marsales);

array diff_sales{3} difsales1 - difsales3;

array monthly{3} jansales febsales marsales;

run;

 

What new variables are created?

 

A. JANSALES, FEBSALES and MARSALES

B. MONTHLY1, MONTHLY2 and MONTHLY3

C. DIFSALES1, DIFSALES2 and DIFSALES3

D. DIFF_SALES1, DIFF_SALES2 and DIFF_SALES3

 

 

Answer: C




# 문제 풀이

 - array diff_sales{3} : diff_sales1 diff_sales2 diff_sales3 변수를 각각 생성함


 - array diff_sales{3} difsales1 - difsales3 : 배열에 difsales1 difsales2 difsales3 변수명을 붙임






728x90
반응형

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

SAS BASE Q43.  (0) 2018.10.31
SAS BASE Q42. _ERROR_ variable  (0) 2018.10.31
SAS BASE Q40. missover  (0) 2018.10.31
SAS BASE Q39.  (0) 2018.10.31
SAS BASE Q38. 정렬 옵션  (0) 2018.10.31
Comments