Hi:
ODS is telling you what the problem is (as Rick pointed out):
[pre]
ERROR: File is in use, C:\Users\Minka\sasrtf.rtf.
ERROR: Fatal ODS error has occurred. Unable to continue processing this output destination.
[/pre]
Because you used the "simple" ODS RTF invocation method, ODS used the default name of: C:\Users\Minka\sasrtf.rtf -- the most common reason that generates this error message is that you look at your output in Word, decide to change something, switch from Word back to SAS, change and resubmit your program -- BUT, you forgot to close Word. When Microsoft Word holds a file open, it holds it open in WRITE mode -- for editing. So, when SAS goes back a second time to re-create the file, it cannot write over that file because Word has exclusive access rights to the file.
To avoid this issue, either
1) Close Word, and/or close the SAS results viewer instance of Word to free up the file name for re-creation
or
2) explicitly change the FILENAME -every time- you do a resubmit (which is hard to do if you do not use a FILE= option) so it doesn't matter to SAS whether Word has the -previous- file still open for write access.
As Rick suggested, using a FILE= option might help you find your file again. Sample code to specify a FILE name is:
[pre]
ods listing close;
ods rtf file='c:\temp\markc_univ.rtf';
** your code;
ods rtf close;
[/pre]
cynthia
PS -- you will encounter this same behavior with ODS PDF (file must not be in use in order for ODS to overwrite the file.)