全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1282 2
2014-12-04
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

and plus: what will be the value of the variable CITY_COUNTRY in the output data set?


Thx in advance~

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-5 09:53:38
应该选D,substr(First,1,7)得到的变量的长度跟First变量长度是一样的,都是16,然后再加上后面9个字符的长度,就是25
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-5 22:49:13
mingfeng07 发表于 2014-12-5 09:53
应该选D,substr(First,1,7)得到的变量的长度跟First变量长度是一样的,都是16,然后再加上后面9个字符的 ...
Got that, thanks
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群