나루다루

SAS BASE Q72. first/last 본문

Study/SAS BASE

SAS BASE Q72. first/last

나루다루 2018. 11. 2. 01:42
728x90
반응형

QUESTION NO: 72

The SAS data set named WORK.SALARY contains 10 observations for each department, and is currently ordered by Department. The following SAS program is submitted:

data WORK.TOTAL;

set WORK.SALARY(keep=Department MonthlyWageRate);

by Department;

if First.Department=1 then Payroll=0;

Payroll+(MonthlyWageRate*12);

if Last.Department=1;

run;

 

Which statement is true?

 

A. The by statement in the DATA step causes a syntax error.

B. The statement Payroll+(MonthlyWageRate*12); in the data step causes a syntax error.

C. The values of the variable Payroll represent the monthly total for each department in the WORK.SALARY data set.

D. The values of the variable Payroll represent a monthly total for all values of WAGERATE in the WORK.SALARY data set.

 

 

Answer: C





# 문제 풀이

 - 반복되는 문제

728x90
반응형

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

SAS BASE Q74. array  (0) 2018.11.02
SAS BASE Q73. truncover  (0) 2018.11.02
SAS BASE Q71. firstobs & obs  (0) 2018.11.02
SAS BASE Q70. find  (0) 2018.11.02
SAS BASE Q69. first/last  (0) 2018.11.02
Comments