楼主: peijiamei
3331 12

请假SAS高手,数据处理问题! [推广有奖]

11
dhwgj 发表于 2010-3-27 10:37:11
长知识了!!!

12
bobguy 发表于 2010-3-27 11:09:17
soporaeternus 发表于 2010-3-27 10:19
9# bobguy
format的用法学习了
以前SAS的人来做项目的时候,是说过类似的replace是format效率最高。。。。。。
学习了

说到方法的话,把b表表达成if else组合,在set a的时候调用,会不会也不错,等等有空测试下。。。。。。
I believe that if making an index  on the key ( in this case x ) in table a may be a better choice if there are high frequency similar queries. 等 (you) 有空测试.

13
cz851218 发表于 2010-3-30 12:05:30
data c;
input company year price;
cards;
1  1  3
1  2  5
2  1  2
2  2  3
3  1  3
3  2  7
;run;
data d;
input company;
cards;
2
3
;run;
proc sql;
create table f as
select * from c join d on c.company=d.company;
run;

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 07:33