跳轉到內容

SAS/出版質量輸出

來自華夏公益教科書,開放的書籍,開放的世界
< SAS


參見 Lenth RV, Hojsgaard S. 2007. SASweave: 使用 SAS 進行文學程式設計. 統計軟體期刊 19: 1{20. URL http://www.jstatsoft.org/v19/i08/

輸出交付系統

[編輯 | 編輯原始碼]

使用輸出交付系統 (ODS),您可以將物件儲存在各種格式中。ODS 提供了一組方法,用於將標準輸出轉換為各種目標。

列表
標準 SAS 輸出視窗
RTF
Microsoft Office 文件
LaTeX
科學出版的標記語言。
HTML
用於編寫網頁。
輸出
SAS 資料集。

您可以使用 ODS SHOW 語句檢視每個 ODS 目標的當前設定 

ods output show ; 
ods listing show ;

ODS TRACE

[編輯 | 編輯原始碼]

對於每個 PROC,您可以使用“ODS TRACE”語句檢視可匯出物件的列表 

ods trace on/listing;
proc freq data=sashelp.class;
   table age sex;
run;
ods trace off;

ODS OUTPUT

[編輯 | 編輯原始碼]

您可以將物件匯出到 SAS 資料集

ods exclude all;
ods output onewayfreqs=exemple_ods (keep=age frequency percent);
proc freq data=sashelp.class;
   table age;
run;
ods output clear;
ods exclude none;

另請參閱

[編輯 | 編輯原始碼]
  • PROC DOCUMENT
華夏公益教科書