SAS Base, A00-211 Crambible 

SAS 베이스 자격증 


QUESTION NO: 27


The following SAS program is submitted: 


libnametemp 'SAS data library';
data work.new;
set temp.jobs;

format newdate mmddyy10.; 

mdate= month(newdate); 

ddate= weekday(newdate); 

run;

proc print data = work.new; 

run;


The variable NEWDATE contains the SAS date value for April 15. 2005

What output is produced if April 15, 2005 falls on a Friday?


A. Obsnewdate mdate ddate 

    1 04/15/2005 APR 6
B. Obs newdate mdate ddate 

    1 04/15/2005 4 6

C. Obs newdate mdate ddate 

    1 04/15/2005 APR 7 

D. Obs newdate mdate ddate 

    1 04/15/2005 4 7



weekday(변수명) : 요일만 숫자로 변환. 단, 일요일은 1이 됨.  (Friday는 6)

month(변수명) : 달을 숫자로 변환. 1월이 1이 됨. 

mmddyy10. : 04/15/2005 형태



Answer: B 


반응형

+ Recent posts