全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1475 3
2017-10-05
The following SAS program is submitted:
data work.flights;
destination = 'CPH';
select(destination);
when('LHR') city = 'London';
when('CPH') city = 'Copenhgen';
otherwise;
end;
run;
Which one of the following is the value of the CITY variable?
A. London
B. Copenh
C. Copenhagen
D. ' ' (missing character value)


为什么选B,求解答,输出不应该是copenhgen
二维码

扫码加我 拉你入群

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

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

全部回复
2017-10-6 22:32:21
city = 'London'
出现在
city = 'Copenhgen'
之前,决定了city的长度
二维码

扫码加我 拉你入群

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

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

2017-10-26 17:53:29
对的,因为一开始定义了city变量长度和'London'一样,后面再定义一次city为'Copenhgen',这次定义的'Copenhgen'的长度和'London'长度一样,所以出现截断现象。
二维码

扫码加我 拉你入群

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

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

2017-10-28 21:12:41
这个题比较初级我也是刚学,楼上都说的很对。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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