반응형
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 #모듈형 #정오표
- 모듈형 #산인공 #산업인력공단 #ncs #예시문제 #해설
- 무협
- 아비무쌍
- 2024 부산교통공사 면접
- sas base
- 객관식 경영학 정오표
Archives
- Today
- Total
나루다루
SAS BASE Q73. truncover 본문
728x90
반응형
QUESTION NO: 73
Given the contents of the raw data file TYPECOLOR.DAT:
daisyyellow
The following SAS program is submitted:
data FLOWERS;
infile 'TYPECOLOR.DAT' truncover;
length Type $ 5 Color $ 11;
input Type $ Color $;
run;
What are the values of the variables Type and Color?
A. Type=daisy, Color=yellow
B. Type=daisy, Color=w
C. Type=daisy, Color=daisyyellow
D. Type=daisy, Color=
Answer: D
# 문제 풀이
- type의 길이가 5이므로 daisyyellow 중 daisy까지 할당되고, color 변수에는 할당할 변수가 없으므로 error가 뜬다.
- truncover 옵션을 쓰면 color변수에 결측이 표시되고 정상적으로 실행된다.
- truncover : 읽을 데이터가 없어서 error 나는 것을 방지한다.
728x90
반응형
'Study > SAS BASE' 카테고리의 다른 글
SAS BASE Q75. cat & catx (0) | 2018.11.02 |
---|---|
SAS BASE Q74. array (0) | 2018.11.02 |
SAS BASE Q72. first/last (0) | 2018.11.02 |
SAS BASE Q71. firstobs & obs (0) | 2018.11.02 |
SAS BASE Q70. find (0) | 2018.11.02 |
Comments