全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1164 1
2015-03-16
很愚蠢的一个问题

50.The following SAS program is submitted:
data test;
input country $8. date mmddyy10.;
cards;
Germany 12/31/2000
France 01/32/2001
;
run;
Which one of the following is the value of the variable _ERROR_ when the variable _N_
has a value of 2?
a. 0
b. 1
c. true
d. false



Correct answer: b
_N_ and _ERROR_ are automatic variables that can be used for DATA step processing
but that are not written to the output data set. _N_ counts the number of times that the
DATA step begins to execute, and _ERROR_ signals the occurrence of an error that is
caused by the data during execution. A value of 0 indicates no error while a value of 1
indicates one or more errors. In the program above, the value for date in the second
observation is invalid.

You can learn about the automatic variables _N_ and _ERROR_ in Understanding
DATA Step Processing.

这个为什么会invalid?我确实不明白


二维码

扫码加我 拉你入群

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

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

全部回复
2015-3-16 09:28:32
因为1月没有32号
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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