Sorry I am new at SAS but when I have the ods format on SAS Editor and run it, it doesn't seem to open in the word document (if programmed for word) and just opens in a result viewer within sas and I have to keep scrolling up and down to look at the graph. Which is really annoying and frustating as I cant seem to see the whole picture that way
Can anyone please tell me how I can change the setting so it opens up in word. Rather that the result viewer in SAS
Trusting that you are in SAS Enterprise Guide for this...
Tools->Options->Results - there are settings for which applications to use by default. You can select to open RTF results outside of EG instead of embedded. Actually, I recommend that option for people who use RTF all of the time. Embedding the Microsoft Word viewer in the EG process can slow things down within EG, and the experience can get a little squirrelly, especially if you have lots of addins for Microsoft Word.
Are you using SAS Enterprise Guide or the SAS Display Manager and Results Viewer???
If you are using the SAS Display Manager, then follow these steps:
Tools--> Options--> Preferences--> Results
Then UNCHECK the choice: View results as they are generated
Underneath this choice on the Results tab, will be another choice --
For " View results using:" choice
Select "Preferred web browser" (uncheck Internal browser)
Also, I am not sure what you mean by "when I have the ods format on SAS Editor" -- you might mean that you have turned on automatic file creation (either HTML or LISTING) from the above Preferences tab. If so, SAS automatically writes the files to your default directory with a name that it assigns. And, if you are using Enterprise Guide, then EG also chooses the name and default location for your output.
To have the most control over the name and location of your ODS output, you can use a basic "sandwich" technique for invoking ODS and specifying the name and disk location of the output results (shown below for ODS RTF):
ods _all_ close; /* closes all open ODS destinations */
ods rtf file='c:\temp\myoutput.rtf'; /* opens RTF output with specific name */
*** your code goes here;
ods rtf close; /* closes the RTF file */
After the above code runs, you should be able to use Windows Explorer to navigate to the C:\temp directory and open the file "myoutput.rtf" using Word or any other word processor of your choice.