全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1068 3
2012-07-27

i think the answer should be C. what are your opions?

data WORK.DATE_INFO;

     Day="01" ;

     Yr=1960 ;

     X=mdy(Day,01,Yr) ;

  run;

What is the value ofthe 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 ofthe character argument in the mdy function.

Answer: A


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-7-27 15:00:35
Should be A, the Character value will be converted to numeric values automatically and there will be a note in the SAS log.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-7-27 15:03:42
hcydlee 发表于 2012-7-27 15:00
Should be A, the Character value will be converted to numeric values automatically and there will be ...
However, we should always consider this problem and avoid system conversion.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-7-27 15:06:36
thanks a lot!
it is true. I just ran the code in SAS
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群