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 



반응형

+ Recent posts