楼主: jessie31
2986 4

[SAS] 请教sas base 123 中2题, 谢谢. [推广有奖]

  • 0关注
  • 0粉丝

已卖:1074份资源

本科生

43%

还不是VIP/贵宾

-

威望
0 级
论坛币
580 个
通用积分
0.1237
学术水平
6 点
热心指数
9 点
信用等级
7 点
经验
1513 点
帖子
70
精华
0
在线时间
92 小时
注册时间
2009-1-7
最后登录
2017-4-9

楼主
jessie31 发表于 2009-3-1 14:07:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
<img alt="" src="file:///C:/DOCUME~1/Jie/LOCALS~1/Temp/moz-screenshot.png"/><img alt="" src="file:///C:/DOCUME~1/Jie/LOCALS~1/Temp/moz-screenshot-1.png"/>请教sas base 123 中2题, 谢谢.<br/><br/>
16 data work.empsalary;<br/>
   set work.people(in=inemp);<br/>
   work.money(in=insal);<br/>
   if insal and inemp;<br/>
   run;<br/>
The data set work.people has 5 obs, and the data set work.money has 7 <br/>
observations.<br/>
How many obs will the data set work.empsalary contain?<br/>
A.0<br/>
B.5<br/>
C.7<br/>
D.12<br/>
<br/>
Why the answer is A.<br/>
The default value for inemp and insal is 0?<br/>
<br/>
73.<br/>
data work.test;<br/>
First='Ipswich, England';<br/>
City_Country=substr(First,1,7)!!','!!'England';<br/>
run;<br/>
Which one of the following is the length of the variable City_Country in the<br/>
output data set?<br/>
A.6<br/>
B.7<br/>
C.17<br/>
D.25<br/>
Why the answer is 25.
二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base observations observation following SAS Base

回帖推荐

xuwei2007 发表于3楼  查看完整内容

if y=substr(x);then the length of y = the length of x; 

本帖被以下文库推荐

沙发
hhongmei1987 发表于 2009-3-1 14:38:00

藤椅
xuwei2007 发表于 2009-3-1 21:24:00
<p>if y=substr(x);</p><p>then the length of y = the length of x;&nbsp;</p>
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

板凳
jessie31 发表于 2009-3-2 02:03:00
Thanks a lot.<br/>

报纸
yongyitian 发表于 2009-3-2 07:26:00
<p>; is not need in line 2 of problem 16, which cause the error.</p><p>problem 72<br/>add: length_CityCountry = length(City_Country);<br/>to check the length.</p>

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

客服
GMT+8, 2026-12-2 08:05