Question: 2 . Creating a Word Document with ODS RTF Generate an RTF file that can be opened in Microsoft Word. The file should include the

2. Creating a Word Document with ODS RTF
Generate an RTF file that can be opened in Microsoft Word. The file should include the results
of three procedures and use different styles to change the appearance.
a. Start with the provided code for Problem 2. Modify the program to write the output file
to &outpath/ParkReport.rtf. Set the style for the output file to Journal and remove page breaks between procedure results. Suppress the printing of procedure titles.
Note: If you did not define the outpath macro variable, run the libname.sas program that was completed in Activity 6.01.
b. Run the program. Open the output file in Microsoft Word. Notice that the Journal style is applied to the results, but the graph is now gray scale instead of color. Also notice that the date and time the program ran is printed in the upper right corner of the page. Close Microsoft Word.
c. Modify your SAS program so that both tables are created using the Journal style, but the graph is created using the SASDOCPRINTER style.
Note: An ODS destination statement enables you to specify a style without requiring you
to redefine the output file location.
d. Add an OPTIONS statement with the NODATE option at the beginning of the program
to suppress the date and time in the RTF file. Restore the option for future submissions
by adding an OPTIONS statement with the DATE option at the end of the program.
e. Run the program. Open the new output file using Microsoft Word. Ensure that the style for both tables is the same, but that the graph is now displayed in color. Close the report.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!