如何在一个 proc 打印语句中打印多个数据集? [英] How to print Multiple datasets in one proc print statement?

查看:22
本文介绍了如何在一个 proc 打印语句中打印多个数据集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 sas 查询,如果我创建了 3 个数据集,假设命名为 ds1、ds2、ds3.现在,我想在一个 proc print 语句下打印所有这些,那么我们该怎么做呢?就像,我想要这样的东西: proc print data = work.ds1 work.ds2 work.ds3;运行;

I have an sas query that if I have created 3 datasets, lets say named as ds1, ds2, ds3. Now, I want to print all of them under one proc print statement, then how can we do that? Like, i want something like: proc print data = work.ds1 work.ds2 work.ds3; run;

有没有办法做到这一点?请确保我希望将这些打印在 ONE OR SINGLE PROC PRINT 语句中.

Is there some way to do this? Please make sure that I want these to be printed in ONE OR SINGLE PROC PRINT statement.

推荐答案

您不能从一个 proc print 语句打印多个数据集.您可以将数据集合并为一个,但此时它们不会是单独的数据集.

You cannot print multiple datasets from one proc print statement. You could concatenate the datasets into one, but they wouldn't be separate datasets at that point.

如果您担心将它们放入特定的输出中,请提供有关所需结果的更多信息.多亏了一些 ODS 功能,您或许可以获得与您想要的结果类似的东西.

If your concern is getting them into a particular output, provide more information as to your desired results. Thanks to some ODS features, you may be able to get something similar to your desired results.

这篇关于如何在一个 proc 打印语句中打印多个数据集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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