结果:找到“SAS where=”相关内容17个,排序为按回复时间降序,搜索更多相关帖子请点击“高级”
SAS where的三种使用
2 个回复 - 2645 次查看
where的三种使用1.data a(where…);
set b;
run;
2.data a;
set b(where…);
run;
3.data a;
set b;
where …;
run;
三者区别及好处
2021-10-8 22:40 - odelia-1 - SAS专版
sas sql中where 和having语句的区别
10 个回复 - 12915 次查看
程序如下:data work.temp1;
input id $ sex $ jobcode $ salary birth date7.@@;
format birth mmddyy8.;
datalines;
1009 m ta1 28880 02mar59 1017 m ta3 40858 28dec57
1036 f ta3 39392 19may65 1037 f ta1 ...
2011-5-5 21:29 - moyunzheng - SAS专版
if和where在SAS中的区别
26 个回复 - 26588 次查看
刚才无意中看到一个帖子,说道在
SAS中if和where的区别,看后受益颇多啊,所以在此“借帖献佛”啦,哈、、、、、
Question:
将数据集
SASHELP.workers第10到15条观测中满足条件"ELECTRIC>260"的观测提 ...
2013-10-20 20:29 - 是风啊 - SAS专版
sas学习笔记之if和where
7 个回复 - 11233 次查看
SAS学习笔记目录
上一篇:
SAS学习笔记之数据合并Merge
IF 和 Where:
Where比较简单,在之前的http://bbs.pinggu.org/forum.php? ... 080&fromuid=2209242]Print[/url]语句中有提到过,这里主要讲IF语句
看例子: ...
2012-8-20 18:02 - zhou.wen - SAS专版
转帖【sas sql proc】where or having
0 个回复 - 1264 次查看
【sas sql proc】where or having[/backcolor]having作用类似于where区别在于where在group by之前执行;having作用于group by。1 proc sql;2 select sum(cmcc_fee) as sumfee,product_name,port3 from &grou ...
2014-11-15 19:43 - lizhewenbei - SAS专版
SAS where
2 个回复 - 890 次查看
data a;
input a b c;
cards;
1 2 3
1 4 3
2 3 5
2 2 6
2 4 8
1 5 8
1 9 0
;
run;
上面只是个小例子,我想从数据集a中选取出来c=3所对应的b的值所对应的观测(即b=2,b=4),第一个第二个第四个第五个观测 ...
2014-3-15 17:40 - 潇湘夜雨spp - 悬赏大厅
SAS where 使用
2 个回复 - 1034 次查看
data a;
input a b c;
cards;
1 2 3
1 4 3
2 3 5
2 2 6
2 4 8
1 5 8
1 9 0
;
run;
上面只是个小例子,我想从数据集a中选取出来c=3所对应的b的值所对应的观测(即b=2,b=4),这是样本小数据,求办法求高手 ...
2014-3-14 23:25 - 潇湘夜雨spp - 爱问频道
SAS中WHERE和if的问题,求解答
2 个回复 - 1365 次查看
楼主初学sas,还望大家指点啊啊啊啊
data a;[/backcolor]
input id x@@;[/backcolor]
cards;[/backcolor]
11 10 31 30 41 40[/backcolor]
;[/backcolor]
data b;[/backcolor]
input id y@@;[/backcolor]
car ...
2014-2-8 15:48 - barbararan - SAS专版
SAS where 后面怎么用
7 个回复 - 6509 次查看
是这样我需要把一个macro里面的input FullList(形式为x1 x2 x3 x4)改为 x1^=. and x2^=. and x3^=. and x4 ^=.
于是我先写了个把前者转换为后者形式的code
%macro convertA(pound);
%let newlist2=%qsysfunc ...
2013-5-15 09:39 - wsddzr - SAS专版
sas 的季度数据,怎么用where statement取值?
2 个回复 - 2317 次查看
日期格式是yyqc,
1999:1
1999:2
1999:3
1999:4
。。。。。
如果要选取其中一个时间段比如1999:1到2008:1,怎么用where statement呢?
我用where qtr between "XX"D and "YY"D,不行。。。
是不 ...
2010-10-6 07:49 - 一眼瞬间 - SAS专版