나루다루

SAS BASE Q87. 날짜 변수 본문

Study/SAS BASE

SAS BASE Q87. 날짜 변수

나루다루 2018. 11. 3. 01:04
728x90
반응형

QUESTION NO: 87

The following SAS program is submitted:

data WORK.DATE_INFO;

X="01Jan1960" D ;

run;

 

What variable X contains what value?

 

A. the numeric value 0

B. the character value "01Jan1960"

C. the date value 01011960

D. the code contains a syntax error and does not execute.

 

 

Answer: D





# 문제 풀이

 - "변수"D : 해당 변수를 날짜변수(숫자형)로 바꿔준다.

  - 이 문제에서는 변수 다음에 띄어쓰기가 있으므로 오류가 난다.


 - sas에서 1960-01-01 = 0이다. (기본 설정)

   (01Jan1960)

728x90
반응형

'Study > SAS BASE' 카테고리의 다른 글

SAS BASE Q89. proc contents & _all_  (0) 2018.11.03
SAS BASE Q88. merge & in  (0) 2018.11.03
SAS BASE Q86. substr & scan & %  (0) 2018.11.03
SAS BASE Q85. Excel Worksheet  (0) 2018.11.03
SAS BASE Q84. _ERROR_  (0) 2018.11.03
Comments