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中的数据格式存在冲突。
答案解释得对初学者有点太简单了, 哪位大牛详细说说