由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 弱问:一道BASE题,怎么也不明白
相关主题
SAS BASE 快疯掉了!!!!帮忙看一道题
SAS base string question[合集] 请教sas base 123中几题
SAS BASE的一道题不明白,青椒请教两道SAS变量长度的题目
a question about length assignment发现sas base123 有几个错误的地方
another sas question请教SAS 123题中的17, 57, 68, 72题
再问三个关于length的问题,谢谢sas base问题
还问道SAS的题目#SAS BASE 问题,明天就考试了##
base 123题第72/73题求解:关于substr的返回长度WHICH ONE IS CORRECT?
相关话题的讨论汇总
话题: england话题: ipswich话题: city话题: 894话题: first
进入Statistics版参与讨论
1 (共1页)
J******d
发帖数: 287
1
The following SAS program is submitted:
data work.test;
First = 'Ipswich, England';
City = substr(First,1,7);
City_Country = City!!', '!!'England';
run;
Which one of the following is the value of the variable CITY_COUNTRY in the
output data set?
A. Ipswich!!
B. Ipswich, England
C. Ipswich, 'England'
D. Ipswich , England
Answer: D
为什么不是B?
i******n
发帖数: 839
2
I guess, reason is that default length of a categorical Variable is 8.
S******y
发帖数: 1123
3
length 16
trailing blanks
w*******t
发帖数: 928
4
The length of variable City is not defined. So, its length will be decided
by the length of variable First.
The answer should be "Ipswich_________, England'.

the

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

J******d
发帖数: 287
5
谢谢!

the

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

1 (共1页)
进入Statistics版参与讨论
相关主题
WHICH ONE IS CORRECT?another sas question
SAS菜鸟请教substr再问三个关于length的问题,谢谢
SAS 小问题求助!!还问道SAS的题目
sas base 123 question 76 疑问base 123题第72/73题求解:关于substr的返回长度
SAS BASE 快疯掉了!!!!帮忙看一道题
SAS base string question[合集] 请教sas base 123中几题
SAS BASE的一道题不明白,青椒请教两道SAS变量长度的题目
a question about length assignment发现sas base123 有几个错误的地方
相关话题的讨论汇总
话题: england话题: ipswich话题: city话题: 894话题: first