반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 부산교통공사
- 에듀윌 봉모
- 객경
- 산업인력공단 #산인공 #ncs #모듈형 #정오표
- sas base
- 무협
- 아비무쌍 #오존
- 부교공 면접
- 토르마무
- 에듀윌특별판
- 아비무쌍
- 코레일
- 신입사원 채용
- 2024 부산교통공사 면접
- 김윤상 객경 정오표
- 부교공
- 노경찬
- 김윤상
- 금강마신
- 객관식 경영학 정오표
- 천소소
- 강웅
- 객관식 경영학
- 모듈형 #산인공 #산업인력공단 #ncs #예시문제 #해설
Archives
- Today
- Total
나루다루
SAS BASE Q69. first/last 본문
728x90
반응형
QUESTION NO: 69
The following SAS program is submitted:
data work.total;
set work.salary(keep = department wagerate);
by department;
if first.department then payroll = 0;
payroll + wagerate;
if last.department
run;
The SAS data set WORK.SALARY, currently ordered by DEPARTMENT, contains 100 observations for each of 5 departments. What is the result?
A. The WORK.TOTAL data set contains 5 observations.
B. The WORK.TOTAL data set contains 100 observations.
C. The WORK.TOTAL data set contains 500 observations.
D. The program fails to execute due to errors.
Answer: A
# 문제 풀이
- last.department=1인 항목만 표시한다. 각 department별로 마지막 변수만 표시되고, 5개의 변수가 있으므로 5개의 관측값이 출력된다.
728x90
반응형
'Study > SAS BASE' 카테고리의 다른 글
SAS BASE Q71. firstobs & obs (0) | 2018.11.02 |
---|---|
SAS BASE Q70. find (0) | 2018.11.02 |
SAS BASE Q68. input @ (???) (0) | 2018.11.02 |
SAS BASE Q67. 문자형/숫자형 변수 (0) | 2018.11.02 |
SAS BASE Q66. ods html (0) | 2018.11.02 |
Comments