使用SAS创建数据透视表时出错

时间:2014-09-26 16:51:05

标签: sas pivot-table sas-ods

我正在尝试使用SAS EG创建数据透视表作为自动化的一部分。 我在代码下运行,但得到错误 “警告:在事件:表中,表达式无效:执行/而$ countx< = $ nums 错误:WHERE子句运算符需要兼容的变量。“ 请帮帮我。

这是代码。

ods path(prepend) work.templat(update);
filename temp "c:\\tableeditor.tpl";
%include temp;

ods tagsets.Tableeditor file="c:\\temp.html"
options(
        auto_excel = "yes"
        pivot_series="yes"
        update_target="c:\\Test.xlsx"
        sheet_name="Summary"
        pivotrow="Name"
        pivotcol="OPEN_DT"
        pivotdata="NUM"
        pivotpage="PROCESSED"
        pivotdata_stats="count"
        pivot_format="dark5"
        excel_save_file="c:\\Test.xlsx"
        quit="NO"
);
proc print data=lib.Test_rpt;
run;

ods tagsets.tableeditor close;

0 个答案:

没有答案
相关问题