BookmarkSubscribeRSS Feed
LB5
Calcite | Level 5 LB5
Calcite | Level 5

Hello, 

I need help with accessing the option to produce a report from the Results tab to PDF or RTF format. I checked 'Preferences' and the settings appear correct, but since I am a new user I am unsure. My computer system is Mac OS Catalina. I have attached screenshots. 

 

Thank you in advance.

 

2 REPLIES 2
ballardw
Super User

The best way to generate PDF, RTF or other types of files is generally use of ODS destination statements. You surround the code that generates the actual output with an ODS destination statement and close statements.

Pseudo example:

 

ods rtf file="<path>\name.rtf" ;

ods pdf file= "<path>\name.pdf";

 

< procedure that generates output>

<other procedure that generates output>

 

ods pdf close;

ods rtf close;

 

the <path> you need to replace with where you want the output to go. A fully qualified path from a drive or similar point is recommended. I don't speak MAC so am not sure of the syntax.

 

You can send output to multiple destinations as above, the same output would go to both an RTF and PDF document. Be aware that each destination you use may have a different ODS Style by default, which controls, fonts, colors and other appearance options. So you may want to specify the specific output style using the STYLE=option on the destination statement. Each destination, RTF, PDF, EXCEL, Powerpoint, Html, Html5 and others have additional options.

SASJedi
Ammonite | Level 13

Looks like you are using SAS Studio and that you have your preferences correctly set. After you run a process that creates a report, go to the RESULTS tab. In the upper left part of the tab, right above the Table of Contents, you should see buttons that allow you to download and open the PDF and Word documents. Clicking the button downloads that version of the report. 

2020-10-28_7-26-58.png

I've set up Chrome (my preferred browser) to download to my Windows "Downloads" folder. So after the file finishes downloading, I can either open the Downloads folder in File Explorer to find my reports or I can use the shortcuts Chrome provides at the bottom of the page to open the files:

2020-10-28_7-30-26.png

Hope this helps!

Mark

 

Check out my Jedi SAS Tricks for SAS Users

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 2 replies
  • 2028 views
  • 0 likes
  • 3 in conversation