全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1483 3
2012-02-21
最近需要合并好多表。。。所以写了个程序。。。结果不能用。。。如下:求大神帮改,我是新手

%Macro syn;
%do i=1 %to 10;
proc sql;
  create table aa&i as select
  a&i.id,a&i.week,a&i.wr,ar.ar
  from a&i,ar
  where a&i.week eq ar.week;
quit;
%end;
%mend syn;
%syn;
二维码

扫码加我 拉你入群

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

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

全部回复
2012-2-21 15:39:00
合并表的帖子挺多的,不知道你的表结构和你要的合并方式.
二维码

扫码加我 拉你入群

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

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

2012-2-21 15:44:08
Modify the names of variable like below and try it again
a&i.id -> a&i..id
a&i.week -> a&i..week
a&i.wr -> a&i..wr
二维码

扫码加我 拉你入群

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

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

2012-2-21 15:59:06
zhangzachary 发表于 2012-2-21 15:44
Modify the names of variable like below and try it again
a&i.id -> a&i..id
a&i.week -> a&i..week
...
nice.....problem solved, 3q
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群