a********r 发帖数: 60 | 1 The following SAS program is submitted:
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.
why the answer is D instead of C?
Thanks! | k****1 发帖数: 123 | 2 EmpId 是numeric,不能define Char length?
【在 a********r 的大作中提到】 : The following SAS program is submitted: : 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.
| a********r 发帖数: 60 | |
|