在Proc报告中不生成ODS文件

时间:2015-11-25 11:25:49

标签: sas

我正在尝试在运行proc报告syntex后生成ODS pdf文件。

ods pdf file = "D:\New folder (2)\Assignment\Case_Study_1\Summary.pdf";                                                              

proc report data = Cs1.olympics headline;                                                                                                                                                                                                                                                                                                        
column Probability Stage (n) Total_Media_Value Tot_Forecast;                                                                            
where Probability > 0;                                                                                                               

   define Probability/group Descending 'Probability';                                                                                   
   define Stage/group noprint;                                                                                                          
   define n / format = comma6. 'Nbr_of_Optys';                                                                                          
   define Total_Media_Value/analysis format = dollar25. 'Tot_Budget';                                                                   
   define Tot_Forecast/computed format = dollar25.;                                                                                     

   compute Tot_Forecast;                                                                                                                
      if upcase (_BREAK_) = ' ' then do;                                                                                                   
         Tot_Forecast = (Total_Media_Value.sum*Probability)/100;                                                                              
         Tot_Forecast_Summer=sum(Tot_Forecast_Summer,Tot_Forecast);                                                                           
      end;                                                                                                                                 
      else do;                                                                                                                             
         Tot_Forecast=Tot_Forecast_Summer;                                                                                                    
      end;                                                                                                                                 
   endcomp;                                                                                                                             

   rbreak after / summarize ol ul;                                                                                                      

   run;          
   ods pdf close;

我无法生成pdf。你能帮帮我吗? 谢谢你的到来。

0 个答案:

没有答案