gpt4 book ai didi

sas - Proc SQL 输出不显示

转载 作者:行者123 更新时间:2023-12-02 08:28:38 27 4
gpt4 key购买 nike

据我所知,使用 Proc SQL 应该可以绕过 PRINT 过程并自动打印输出,但由于某种原因,输出没有显示出来。我的输出目标是事件的,我的日志没有错误。这是我的代码。

proc sql;
create table merged as
select *
from gram as g, nos as n
where g.cash = n.weight;
quit;

日志仅说明过程时间和行/变量计数。没有错误。但它没有出现在输出窗口中。我不确定是什么问题。

最佳答案

AFAIK SAS 仅在您没有 CREATE TABLE 语句时输出到结果窗口,尽管您也可以在 PROC SQL 上使用 NOPRINT 选项来抑制它。

您可以删除创建表语句或添加一个选择到 proc 以显示您的数据:

proc sql;
create table merged as
select *
from gram as g, nos as n
where g.cash = n.weight;

select * from merged;
quit;

proc sql;
select *
from gram as g, nos as n
where g.cash = n.weight;
quit;

关于sas - Proc SQL 输出不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29585500/

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