由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 请教SAS base 70题中的68题
相关主题
sas questionSAS Base 50题中的30和33题疑问
Import excel file to sas (the first 8 or more observations[SAS]一个比较大的dataset中求特定对variable的R2
慕名而来,请教一个 SAS date question急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSE
SAS data merge求助SAS code help!! thanks
SAS format 的问题一道SAS面试题,关于dummy variable
SAS问题请教SAS Macro 问题请教 。。。
请教工作中遇到的correlation问题请教一个SAS recode variable的问题吧
SAS问题请教:Numeric Variable Length的设定SAS 问题:关于比较variable 包子答谢
相关话题的讨论汇总
话题: charempid话题: empid话题: variable话题: sas话题: numeric
进入Statistics版参与讨论
1 (共1页)
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
3
多谢!
1 (共1页)
进入Statistics版参与讨论
相关主题
SAS 问题:关于比较variable 包子答谢SAS format 的问题
急问一个SAS 的常见问题SAS问题请教
help in sas请教工作中遇到的correlation问题
R能处理多大的数据集?SAS问题请教:Numeric Variable Length的设定
sas questionSAS Base 50题中的30和33题疑问
Import excel file to sas (the first 8 or more observations[SAS]一个比较大的dataset中求特定对variable的R2
慕名而来,请教一个 SAS date question急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSE
SAS data merge求助SAS code help!! thanks
相关话题的讨论汇总
话题: charempid话题: empid话题: variable话题: sas话题: numeric