楼主: xayzzsr
1199 0

[问答] sas base 123题的 13 14 [推广有奖]

  • 0关注
  • 0粉丝

等待验证会员

高中生

72%

还不是VIP/贵宾

-

威望
0
论坛币
102 个
通用积分
1.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
266 点
帖子
27
精华
0
在线时间
32 小时
注册时间
2019-3-6
最后登录
2021-5-28

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
大家好,

想知道sas base 123题中13 题if...then... 语句的用法? 题如下

QUESTION 13A raw data file is listed below:
RANCH,1250,2,1,Sheppard Avenue,"64,000"SPLIT,1190,1,1,RandStreet,"64,000"SPLIT,1190,1,1,RandStreet,"65,850"
CONDO,1400,2,1.5,Market Street,"80,050"
TWOSTORY,1810,4,3,Garris Street,"107,250"RANCH,1500,3,3,KembleAvenue,"107,250"RANCH,1500,3,3,KembleAvenue,"86,650"
SPLIT,1615,4,3,West Drive,"94,450"
SPLIT,1305,3,1.5,Graham Avenue,"$73,650"
The following SAS programme is submitted using the raw data file as input:
data work.condo_ranch;
infile'file-specification' dsd;
input style $@;
73,650"

ThefollowingSASprogramissubmittedusingtherawdatafileasinput:datawork.condoranch;infile′file−specification′dsd;


inputst
if style = 'CONDO' or style = 'RANCH' then
input sqfeet bedrooms baths street $ price : dollar10.;
run;
How many observations will the output data set contain?
A. 0
B. 3
C. 5
D. 7

我知道@的用法, 跳到下一个input statement 继续。 如果input 语句嵌入在if... then... 语句中, 此时@ 还执行么?

QUESTION 14A raw data file is listed below:
RANCH,1250,2,1,Sheppard Avenue,"64,000"SPLIT,1190,1,1,RandStreet,"64,000"SPLIT,1190,1,1,RandStreet,"65,850"
CONDO,1400,2,1.5,Market Street,"80,050"
TWOSTORY,1810,4,3,Garris Street,"107,250"RANCH,1500,3,3,KembleAvenue,"107,250"RANCH,1500,3,3,KembleAvenue,"86,650"
SPLIT,1615,4,3,West Drive,"94,450"
SPLIT,1305,3,1.5,Graham Avenue,"$73,650"
The following SAS programme is submitted using the raw data file as input:
data work.condo_ranch;
infile'file-specification' dsd;
input style $@;
73,650"

ThefollowingSASprogramissubmittedusingtherawdatafileasinput:datawork.condoranch;infile′file−specification′dsd;


inputst
if style = 'CONDO' or style = 'RANCH';
input sqfeet bedrooms baths street $ price : dollar10.;
run;
How many observations will the output data set contain?
A. 0
B. 3
C. 5
D. 7





想知道 13题和14题的区别。 谢谢大家, 还是小白 请多关照 。
二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base observations observation followings

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 23:09