使用 SAS 导出到 Excel [英] Export to Excel using SAS

查看:30
本文介绍了使用 SAS 导出到 Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有 2 个 SAS 数据集:test1.sas &测试2.sas.现在我想将这 2 个数据集导出到 excel 中,其中在 excel 文件 Sheet1 中将有 test1.sas 数据 &在 Sheet2 中会有 test2.sas 数据.

Suppose I have 2 SAS dataset: test1.sas & Test2.sas. Now I want to export these 2 dataset into excel, where in the excel file Sheet1 will have test1.sas data & in Sheet2 will have test2.sas data.

怎么做?

推荐答案

开始这篇论文.这个this 也是很好的参考.

Start with this paper. This and this are also good references.

使用 ODS,您可以使用报告过程(例如 Proc PRINT 和 REPORT)将数据输出到 XML.您不仅可以创建多页输出,还可以设置日期格式、设置自动过滤器和放置标题.

Using ODS, you can output your data using reporting procs (Ex. Proc PRINT and REPORT) to XML. Not only can you create multisheet output, but you can format dates, set autofilters and place headers.

这篇关于使用 SAS 导出到 Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆