由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - a question about length assignment
相关主题
another sas question请教两道SAS变量长度的题目
SAS base string question请教SAS 123题中的17, 57, 68, 72题
还问道SAS的题目#SAS BASE 问题,明天就考试了##
SAS BASE的一道题不明白,青椒Another SAS perl question
再问三个关于length的问题,谢谢A SAS problem
SAS BASE 快疯掉了!!!![合集] SAS一问,急~!
base 123题第72/73题求解:关于substr的返回长度请问SPSS 或者 SAS中变量名的变换 AABB - BBAA
弱问:一道BASE题,怎么也不明白哪个SAS function可以读这样的variable
相关话题的讨论汇总
话题: england话题: sas话题: ipswich话题: first话题: city
进入Statistics版参与讨论
1 (共1页)
z*********o
发帖数: 541
1
73. The following SAS program is submitted:
data work.test;
First = 'Ipswich, England';
City_Country = substr(First,1,7)!!', '!!'England';
run;
Which one of the following is the length of the variable CITY_COUNTRY in the
output data set?
A. 6
B. 7
C. 17
D. 25
Answer: D
为何答案是D呢?在SAS里面run了一下 结果是Ipswich,England.这样的话长度也不是25
呀?谢谢
A*********u
发帖数: 8976
2
length of a variable指的是最长可以储存的长度
不是particular某一个值的长度
值还可以是missing呢

73. The following SAS program is submitted:
data work.test;
First = 'Ipswich, England';
City_Country = substr(First,1,7)!!', '!!'England';
run;
Which one of the following is the length of the variable CITY_COUNTRY in the
output data set?
A. 6
B. 7
C. 17
D. 25
Answer: D
为何答案是D呢?在SAS里面run了一下 结果是Ipswich,England.这样的话长度也不是25
呀?谢谢

【在 z*********o 的大作中提到】
: 73. The following SAS program is submitted:
: data work.test;
: First = 'Ipswich, England';
: City_Country = substr(First,1,7)!!', '!!'England';
: run;
: Which one of the following is the length of the variable CITY_COUNTRY in the
: output data set?
: A. 6
: B. 7
: C. 17

1 (共1页)
进入Statistics版参与讨论
相关主题
哪个SAS function可以读这样的variable再问三个关于length的问题,谢谢
问题请教SAS BASE 快疯掉了!!!!
请教sas adv 130题中 第12题 第19题base 123题第72/73题求解:关于substr的返回长度
SAS问题请教:Numeric Variable Length的设定弱问:一道BASE题,怎么也不明白
another sas question请教两道SAS变量长度的题目
SAS base string question请教SAS 123题中的17, 57, 68, 72题
还问道SAS的题目#SAS BASE 问题,明天就考试了##
SAS BASE的一道题不明白,青椒Another SAS perl question
相关话题的讨论汇总
话题: england话题: sas话题: ipswich话题: first话题: city