SAS Base, A00-211 Crambible, SAS 크램바이블
SAS 베이스 자격증, SAS 문제풀이
QUESTION NO: 148
The following SAS program is submitted:
data work.retail;
cost = '20000';
total = .10 * cost;
run;
Which one of the following is the value of the variable TOTAL in the output data set?
A. 2000
B. '2000'
C. . (missing numeric value)
D. '' (missing character value)
cost 변수가 따옴표안에 들어가 문자형 값을 나타내지만 알아서 문자형을 숫자형으로 변환해서 total값으로 들어가게 됩니다. 물론 log 파일에는 "NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column) 이라고 알려줍니다.
Answer: A
반응형
'SAS > Base Programmer' 카테고리의 다른 글
[A00-211, SAS Crambible] SAS Q150 - 149번 참고!!!! substr (0) | 2017.06.15 |
---|---|
[A00-211, SAS Crambible] SAS Q149 - length (0) | 2017.06.15 |
[A00-211, SAS Crambible] SAS Q147 (1) | 2017.06.11 |
[A00-211, SAS Crambible] SAS Q145 - 144번 참고 put / input (0) | 2017.06.11 |
[A00-211, SAS Crambible] SAS Q144 - put / input / date (0) | 2017.06.10 |