BookmarkSubscribeRSS Feed
hjjijkkl
Pyrite | Level 9

How do I fix rtf file corrupt? I am trying to have an output using ODS RTF with serval tables as an output result and I keep on getting "the file is corrupted and cannot open". I have tried some of the solution provided by pervious SAS support community but, non of it is working. I dont have admins access to my SAS so I cannot change memory size of the SAS. 

3 REPLIES 3
Kurt_Bremser
Super User

Where do you get the "corrupt" message? In the SAS log, or when you open the file with Word or similar?

Please show the code you use to create the RTF file. Also supply example data, or use datasets in SASHELP to show your issue.

hjjijkkl
Pyrite | Level 9

what I used looks something like this:

ODS rtf file="";

proc freq......;

proc report .....;

proc report....;

Proc report....;

ODS rft file close;

 

I have 4 tables as an output because I wanted them to be printed in one file. 

this is what automatically opens when i run the program. I t says: we're sorry, we cannt open the doc because we found a problem with its content. If you click details, its says the file is corrupted.  

hjjijkkl_0-1601306283093.png