SAS Ods RTF和PROC报告

时间:2014-09-22 08:54:59

标签: sas

所以我写了这个:

ods rtf file = "D:\Sarath\List\2.rtf";
    proc report data = list.lst1;   
    column PATIENT EOSDT STDRUG STDRUGSP STDCOMP STDCOMSP DAY5 EOSREAS;
    define PATIENT/display   "Subject * Number";
    define EOSDT /order  "Date of * Study Completion/ * Early Discontinuation";
    define STDRUG/order   "Administered*Study Drug?";
    define STDRUGSP/display "If no,*Specify" ;
    define STDCOMP/order "Completed*Dosing";
    define STDCOMSP/display "If no,*Specify";
    define DAY5/order "Completed*Study?";
    define EOSREAS/display "Reason for * not Completing";
    run;
 ods rtf close;

并创建一个没有数据的rtf。只是一个空白页面。请告诉我这里我做错了什么。

问候。

1 个答案:

答案 0 :(得分:1)

将nowd添加到proc报告行,否则SAS期望proc报告是一个交互式过程。

proc report data = list.lst1 nowd; 

请参阅此处的文档: http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473620.htm