楼主: hailingkatherin
1893 8

where 和 if的区别 [推广有奖]

  • 0关注
  • 0粉丝

硕士生

82%

还不是VIP/贵宾

-

威望
0
论坛币
277 个
通用积分
0
学术水平
1 点
热心指数
5 点
信用等级
1 点
经验
164 点
帖子
126
精华
0
在线时间
87 小时
注册时间
2015-1-18
最后登录
2016-5-15

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

94. Given the following SAS error log
44 data WORK.OUTPUT;
45 set SASHELP.CLASS;
46 BMI=(Weight*703)/Height**2;
47 where bmi ge 20;
ERROR: Variable bmi is not on file SASHELP.CLASS.
48 run;
What change to the program will correct the error?
A.Replace the WHERE statement with an IF statement
B. Change the ** in the BMI formula to a single *
C. Change bmi to BMI in the WHERE statement
D.Add a (Keep=BMI) option to the SET statement
Answer: A

为什么不能用C呢? 虽然选对了,但还是不是特别清楚。
谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:Where HERE whe statement following where

沙发
sushe1527 发表于 2015-2-25 23:05:06 |只看作者 |坛友微信交流群
真有毅力  几乎所有的都问了一遍

使用道具

藤椅
hailingkatherin 发表于 2015-2-26 08:08:19 |只看作者 |坛友微信交流群
sushe1527 发表于 2015-2-25 23:05
真有毅力  几乎所有的都问了一遍
是真的搞不清楚。。。

使用道具

板凳
fishsil 发表于 2015-2-26 10:50:56 |只看作者 |坛友微信交流群
In DATA Steps
The WHERE statement applies to all data sets in the preceding SET, MERGE, MODIFY, or UPDATE statement, and variables that are used in the WHERE statement must appear in all of those data sets.

使用道具

报纸
fishsil 发表于 2015-2-26 10:52:42 |只看作者 |坛友微信交流群
sas中针对变量名不区分大小写

使用道具

地板
hailingkatherin 发表于 2015-2-26 11:08:50 |只看作者 |坛友微信交流群
fishsil 发表于 2015-2-26 10:52
sas中针对变量名不区分大小写
谢谢!!!

使用道具

7
soporaeternus 发表于 2015-2-27 10:37:51 |只看作者 |坛友微信交流群
sushe1527 发表于 2015-2-25 23:05
真有毅力  几乎所有的都问了一遍
看到头像.......

使用道具

8
sushe1527 发表于 2015-2-27 11:08:38 |只看作者 |坛友微信交流群
soporaeternus 发表于 2015-2-27 10:37
看到头像.......
这是你以前用的?哈哈 要不我换个

使用道具

9
soporaeternus 发表于 2015-2-27 13:23:31 |只看作者 |坛友微信交流群
sushe1527 发表于 2015-2-27 11:08
这是你以前用的?哈哈 要不我换个
挺好的,特提神

使用道具

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

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

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

GMT+8, 2024-4-25 15:26