반응형
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 Q67. 문자형/숫자형 변수 본문
728x90
반응형
QUESTION NO: 67
Given the raw data file AMOUNT:
$1,234
The following SAS program is submitted:
data test;
infile 'amount';
input@1 salary 6.;
if _error_ then description = 'Problems';
else description = 'No Problems';
run;
What is the result?
A. The value of the DESCRIPTION variable is NoProbl.
B. The value of the DESCRIPTION variable is Problems.
C. The value of the DESCRIPTION variable is No Problems.
D. The value of the DESCRIPTION variable can not be determined.
Answer: B
# 문제 풀이
- $1,234는 문자형 변수인데, 데이터셋을 생성할 때 salary 변수는 숫자형 변수이다.
- 따라서 에러가 발생하고, if 구문에 따라서 description에는 'Problems'가 표시된다.
728x90
반응형
'Study > SAS BASE' 카테고리의 다른 글
SAS BASE Q69. first/last (0) | 2018.11.02 |
---|---|
SAS BASE Q68. input @ (???) (0) | 2018.11.02 |
SAS BASE Q66. ods html (0) | 2018.11.02 |
SAS BASE Q65. cat & catx & !! (0) | 2018.11.02 |
SAS BASE Q64. keep (0) | 2018.11.02 |
Comments