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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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
|
|