新人诚恳请教大家~~
正在复习sas base,第四题
4.The following SAS program is submitted:
data WORK.DATE_INFO;
Day="01" ;
Yr=1960 ;
X=mdy(Day,01,Yr) ;
run;
What is the value of the variable X?
A. the numeric value 0
B. the character value "01011960"
C. a missing value due to syntax errors
D. the step will not compile because of the character argument in the mdy function.
Answer: A
------------------------------------------------------------------------------------------------------------------------------
我平时用的时候,比如2012年1月1日,就是mdy(1,1,2012),想请问一下character也是可以的么?