全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1740 1
2019-02-10
SAS Base 68 题:
data WORK.ACCOUNTING;
set WORK.DEPARTMENT;
length EmpId $6;
CharEmpid=EmpId;
run;
If data set WORK.DEPARTMENT has a numeric variable EmpId,which statement is true about the output dataset?
A. The type of the variable CharEmpid is numeric.
B. The type of the variable CharEmpid is unknown.
C. The type of the variable CharEmpid is character. D. The program fails to execute due to errors.
Answer: D 这里主要是LENGTH定义数据的格式与WORK.DEPARTMENT中的数据格式存在冲突。


答案解释得对初学者有点太简单了, 哪位大牛详细说说
二维码

扫码加我 拉你入群

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

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

全部回复
2019-2-10 11:17:07
再仔细看了一下原题,才发现CharEmpid 只是一个变量。我还以为Char可以把Empid 从numeric变成character呢。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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