gpt4 book ai didi

sql - 使用proc sql将多个不同结构的表堆叠到一张表中

转载 作者:行者123 更新时间:2023-12-02 09:11:25 25 4
gpt4 key购买 nike

我在 SAS 中创建了多个具有不同字段名称的表,我想将这些表堆叠到一个表中并将其导出到 Excel。我知道这不是标准的,但它对我来说可以将一个表导出到 Excel,而不是多个表。

我如何在 proc sql 中做到这一点?

enter image description here

最佳答案

如果您使用的是 SAS 9.4 TS1M3+,请改用 ODS EXCEL。

ods excel file = 'C:\_localdata\demo.xlsx' options(sheet_interval = 'none') style=meadow;

proc print data=sashelp.cars (obs=5);
proc print data=sashelp.air (obs=5);
proc print data=sashelp.class (obs=5);
run;

ods excel close;

关于sql - 使用proc sql将多个不同结构的表堆叠到一张表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51544486/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com