楼主: anthon01
1284 2

[问答] a question about the length of the varible [推广有奖]

  • 0关注
  • 0粉丝

svip1

已卖:35份资源

硕士生

87%

还不是VIP/贵宾

-

威望
0
论坛币
29071 个
通用积分
0.1494
学术水平
0 点
热心指数
-3 点
信用等级
0 点
经验
4246 点
帖子
138
精华
0
在线时间
223 小时
注册时间
2010-3-26
最后登录
2025-1-20

楼主
anthon01 发表于 2014-12-4 23:30:30 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
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~

二维码

扫码加我 拉你入群

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

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

关键词:question varible length Quest About following question about

回帖推荐

mingfeng07 发表于2楼  查看完整内容

应该选D,substr(First,1,7)得到的变量的长度跟First变量长度是一样的,都是16,然后再加上后面9个字符的长度,就是25

沙发
mingfeng07 学生认证  发表于 2014-12-5 09:53:38
应该选D,substr(First,1,7)得到的变量的长度跟First变量长度是一样的,都是16,然后再加上后面9个字符的长度,就是25

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

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-4 12:44