楼主: hailingkatherin
2184 8

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

  • 0关注
  • 0粉丝

已卖:13份资源

硕士生

82%

还不是VIP/贵宾

-

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

楼主
hailingkatherin 发表于 2015-2-25 22:42:21 |AI写论文

+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
拉您进交流群
GMT+8, 2025-12-24 17:51