2016-12-14 75 views

回答

1

這部分取決於目的地。

PROC REPORT在頁敏感的目的地,如ODS LISTINGODS PDF,可以確信以幾種方式限制觀察。

ODS LISTINGOPTIONS PS=[#]將設置頁面大小。 PS選項PROC REPORT聲明也是這樣做的。有關更多信息,請參閱PROC REPORT statement

ODS PDF,ODS RTF,其他頁面敏感目標:創建一個頁面變量,用於存儲觀察值落在哪個頁面上。

ods pdf; 

data cars; 
    set sashelp.cars; 
    if mod(_n_,20)=0 then page_num+1; 
run; 

proc report data=cars; 
    columns make model page_num; 
    define page_num/ order noprint; 
    break after page_num/page; 
run; 
ods pdf close; 
+0

非常感謝。 – Joe

相關問題