我正在使用语句PROC REPORT
内部在 SAS 中创建一个 2 列报告ODS PDF
。
我的代码看起来像这样:
ods pdf file='/file/here.pdf' columns=2;
ods pagestart=now;
proc report data=rpt\_data nowd missing contents='';
columns a b c;
by a;
define a /group order=internal;
define b /display;
define c /display;
break after a /page;
run;
这似乎只是“中断”到页面上的下一列,而不是像我想要的那样实际的新页面。
有什么建议么?
运行此代码将产生我正在询问的问题。
%let file1='/file/directory/test.pdf';
ods pdf file=&file1. columns=2;
ods pdf startpage=now;
proc sort data=sashelp.class out=temp;
by age;
run;
proc report data=temp nowd missing contents='';
columns age name sex;
by age;
define age /group order=internal;
define name /display;
define sex /display;
break after age /page;
run;
ods \_all\_ close;