나루다루

SAS BASE Q24. weekday 본문

Study/SAS BASE

SAS BASE Q24. weekday

나루다루 2018. 3. 1. 22:28
728x90
반응형

QUESTION NO: 24

Given the SAS data set ONE: ONE

Obs Dte

1 09JAN2005

2 12JAN2005

 

The following SAS program is submitted:

data two;

set one;

day = <insert expression here>;

format dte date9.;

run;

 

The data set TWO is created:

TWO

Obs Dte Day

1 09JAN2005 1

2 12JAN2005 4

 

Which expression successfully completed the program and created the variable DAY?

 

A. day(dte)

B. weekday(dte)

C. dayofweek(dte)

D. datdif(dte,'01jan2005'd,'act/act')

 

 

Answer: B




# 문제 풀이

 - weekday(날짜변수) : 날짜를 요일에 따른 숫자로 표시한다. 일요일=1, 월요일=2, ... , 토요일=7 로 표시

728x90
반응형

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

[SAS BASE] Q53. array & _temporary_  (0) 2018.05.23
SAS BASE Q25. define[수정] ??  (0) 2018.03.01
SAS BASE Q23. _ & %  (0) 2018.03.01
SAS BASE Q22. ???  (0) 2018.03.01
SAS BASE Q21. do / Q12 비교  (0) 2018.03.01
Comments