SAS 旋转 table 90 度然后输出为 pdf

SAS rotate table 90 degree then output to pdf

目前我使用下面的代码输出pdf。

GOPTIONS device=ACTXIMG;
ods pdf file="....\Daily Performance &CDate..pdf";

title 'Daily Performance';
proc tabulate data=DailyReport s=[just=c] missing;
class Area Period/order=data preloadfmt;
format Area $Areaformat. Period $Periodformat.;
var Units Uti Vari;
table (Area='' ),
      (Units={Label="Units"}*(mean=''*f=comma6.)
       Uti={Label="Uti"}*(sum=''*f=percent8.1)
       Vari={Label="Var."}*(mean=''*f=percent8.1))/box="&CDate";
run;

ods pdf close;

但在某些情况下,我在表格输出中有 20-30 列。如果我使用上面的代码,那么 table 将在 PDF 中分成 2 个或更多页面。

那么有没有办法把它变成 "vertical" 的 pdf 格式?或者在压缩到一页时保持水平的方法?

使用选项方向更改页面方向。

option orientation=landscape;

您可以通过更改 procs 之间的选项来更改文档中的方向。