SAS中文论坛
标题:
在SAS里怎么把两个相同格式表合成一个表
[打印本页]
作者:
shiyiming
时间:
2011-5-11 11:08
标题:
在SAS里怎么把两个相同格式表合成一个表
我有两个EXEL表,相同的格式和行名称, 每个表各有4万行数据,我把两个表都导入到SAS里,表名字是1,2.现在想把在SAS里的这两表合成一个表,该怎么写CODE? 因为EXCEL最多有65526行,所以无法在EXCEL里把两表合成一个表
作者:
shiyiming
时间:
2011-5-11 12:13
标题:
Re: 在SAS里怎么把两个相同格式表合成一个表
直接使用append 添加过程:
proc append base=1 data=2;
run;
作者:
shiyiming
时间:
2011-5-11 13:44
标题:
Re: 在SAS里怎么把两个相同格式表合成一个表
FYI
libname f1 excel "the path of the first excel";
libname f2 excel "the path of the second excel";
data total;
set f1.'sheet1$'n
f2.'sheet2$'n
;
run;
the sheet name may not be sheet1, and you can modify this accordingly.
欢迎光临 SAS中文论坛 (http://www.mysas.net/forum/)
Powered by Discuz! X3.2