Hi: Well, think of ODS statements as acting like the 2 pieces of bread in a sandwich. The top piece of bread starts the creation of an output file and names the file to be created (as appropriate for the destination -- which means ODS RTF creates an RTF file, ODS PDF creates a PDF file, ODS HTML creates an HTML file, ODS EXCEL creates an XLSX file, etc, etc). Then you have the filling in the sandwich -- the procedures that are going to send output to the ODS destination file -- This could be one procedure or it could be more than one procedure. Whatever the procedure creates will be sent to the ODS destination file, unless you apply some limits to ODS (like ODS SELECT or ODS EXCLUDE statements). Finally, the bottom piece of bread in the ODS "sandwich" is the ODS <destination> close. So if you open, ODS RTF, then you must close ODS RTF. If you open ODS HTML, you must close ODS HTML, etc, etc. In your code, the ONLY output that will be sent to the ODS RTF file is the PROC PRINT output because of where your ODS RTF CLOSE; statement is located. Your 2 plots will probably show up in the default ODS HTML results window in SAS Studio. However, a bigger issue that I see is that you have a %macro statement at the very top of your code and there's no matching %mend statement. So given that this code is within a Macro Program definition, until you call or invoke the macro program, no files will be created. The only thing that happens when you submit code in a %MACRO/%MEND block of code is that the code is compiled and stored in a SAS Macro catalog. This catalog can be temporary or permanent. I don't see where you actually call the %halfnorm macro program or supply it with parameters. This is quite different code from the code you initially posted with the incorrect ODS RTF syntax. You say that you want an output file that you can edit. Assuming that you run the macro program and that the ODS RTF file is created, only your PROC PRINT results will be in the RTF file at the present time. That's assuming that everything works. If you want the graphs and the PROC PRINT output to be in the RTF file, you'll need to move the ODS RTF close to the end, after the second GPLOT step. If you ONLY want the PROC PRINT results, then in your folder, if the program runs successfully, you should see the ODS RTF output file with the name you provided in the FILE= option. You will need to download that file to your own machine, so you can open the file with Microsoft Word or some other word processing program. Cynthia
... View more