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

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1425 views
  • 1 like
  • 2 in conversation