BookmarkSubscribeRSS Feed
julieq8880
Calcite | Level 5

Hi,

 

Will someone show me in which  case will the table or report be able to be exported to Powerpoint or word file? also after Every "Proc...run;" ? Thanks!

2 REPLIES 2
PGStats
Opal | Level 21

Powerpoint and RTF are two destinations available in SAS Output Delivery System (ODS). When a destination is open, all procedure output is directed there by default. So, the statements

 

/* Open a destination */
ODS RTF file="c:\temp\myFile.rtf";

/* Create some output */
proc print data=sashelp.class; 
run;

proc univariate data=sashelp.class;
var height weight;
run;

/* Close the destination */
ODS RTF close;

will create a Word compatible file. There are lots of options in ODS to control which output goes to the destination and how it is formatted.

 

PG
CaseySmith
SAS Employee

You can code the ODS statements explicitly as @PGStats showed, or you can check the RTF and/or PowerPoint options in EG's Tools->Options-Results->Results General->Result Formats, which will auto-generate the ODS statements for you in EG's generated wrapper code (which you can see in the log whenever you run code).

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1167 views
  • 0 likes
  • 3 in conversation