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定義數(shù)據(jù)的格式與WORK.DEPARTMENT中的數(shù)據(jù)格式存在沖突。
答案解釋得對(duì)初學(xué)者有點(diǎn)太簡(jiǎn)單了, 哪位大牛詳細(xì)說(shuō)說(shuō)