全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2779 4
2009-03-01
请教sas base 123 中2题, 谢谢.

16 data work.empsalary;
set work.people(in=inemp);
work.money(in=insal);
if insal and inemp;
run;
The data set work.people has 5 obs, and the data set work.money has 7
observations.
How many obs will the data set work.empsalary contain?
A.0
B.5
C.7
D.12

Why the answer is A.
The default value for inemp and insal is 0?

73.
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
Why the answer is 25.
二维码

扫码加我 拉你入群

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

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

全部回复
2009-3-1 14:38:00
二维码

扫码加我 拉你入群

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

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

2009-3-1 21:24:00

if y=substr(x);

then the length of y = the length of x; 

二维码

扫码加我 拉你入群

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

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

2009-3-2 02:03:00
Thanks a lot.
二维码

扫码加我 拉你入群

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

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

2009-3-2 07:26:00

; is not need in line 2 of problem 16, which cause the error.

problem 72
add: length_CityCountry = length(City_Country);
to check the length.

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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