반응형
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 |
Tags
- 아비무쌍
- 부교공 면접
- 강웅
- 객관식 경영학
- 코레일
- 아비무쌍 #오존
- sas base
- 부산교통공사
- 김윤상 객경 정오표
- 객관식 경영학 정오표
- 토르마무
- 금강마신
- 2024 부산교통공사 면접
- 부교공
- 무협
- 에듀윌 봉모
- 모듈형 #산인공 #산업인력공단 #ncs #예시문제 #해설
- 노경찬
- 객경
- 산업인력공단 #산인공 #ncs #모듈형 #정오표
- 신입사원 채용
- 에듀윌특별판
- 김윤상
- 천소소
Archives
- Today
- Total
나루다루
SAS BASE Q11. merge(by - sort) 본문
728x90
반응형
QUESTION NO: 11
The following SAS program is submitted:
proc sort data = work.employee;
by descending fname;
proc sort data = work.salary;
by descending fname;
data work.empdata;
merge work.employee
work.salary;
by fname;
run;
Why does the program fail to execute?
A. The SORT procedures contain invalid syntax.
B. The merged data sets are not permanent SAS data sets.
C. The RUN statement was omitted alter each or the SORT procedures.
D. The data sets were not merged in the order by which they were sorted.
Answer: D
# 문제 풀이
- 데이터셋은 fname 변수에 대해 descending(내림차순) 정렬인데, merge 구문에서는 fname 변수에 대해 오름차순 정렬을 했기 때문에 오류가 남.
- 데이터셋에서 descending을 빼고 오름차순 정렬을 하거나, merge 구문에서 descending을 넣어줘야 함.
728x90
반응형
'Study > SAS BASE' 카테고리의 다른 글
SAS BASE Q13. read data & dlm [수정] (0) | 2018.02.13 |
---|---|
SAS BASE Q12. do / Q21과 비교 (0) | 2018.02.13 |
SAS BASE Q10. proc contents & _all_ (0) | 2018.02.12 |
SAS BASE Q9.rename (0) | 2018.02.12 |
SAS BASE Q8. do until & gt (0) | 2018.02.12 |
Comments