Watch this Ask the Expert session to learn how to render SAS results into Microsoft PowerPoint format.
Watch the Webinar
You will learn how to:
Use SAS Output Delivery System (ODS) code.
Modify result formats in SAS Enterprise Guide.
Create PowerPoint outputs in SAS Studio.
Add stored processes and tasks in PowerPoint with SAS Office Analytics.
The questions from the Q&A segment held at the end of the webinar are listed below and the slides from the webinar are attached.
Q&A
How do you get the SAS plug in for PowerPoint?
How do we get the SAS add-in for MS office?
You will need the SAS MS Add-In license; you can speak to your sales representative if you're interested in that.
Maybe I missed but how can we add the SAS plugin to PowerPoint/excel/word?
Again, you'll have to have the appropriate license. So, you'll have to talk to your sales representative and inquire about SAS Office Analytics and SAS Microsoft add in application.
Can you edit tables and graph in PowerPoint after inserting?
You can edit the created tables in PowerPoint, but not the graphs. However, this is not recommended, you should do all your data table manipulation before creating your PowerPoint results.
Can ODS PowerPoint save .pptx?
Yes, ODS PowerPoint can save .pptx files.
Does this also support .pptx format files?
Not pptx?
Can the extension file of the PowerPoint file be a .pptx or it should only be .ppt?
The .ppt file format is an outdated PowerPoint file format, which was replaced in 2007 by the .pptx file format. Has SAS made updates to allow creation of .pptx files?
Yes, the file extension can be .pptx
What if my company requires use of a specific PPTX template on all slides- is it possible to generate PPTX files using or honoring that template from SAS, or would we have to revert to copy/paste?
You would have to create your SAS results first, then copy and paste to your company template.
When the output is written to ppt, are the tables live in terms of each column/row can be edited or is it written without editing capabilities?
You can edit the created tables in Powerpoint, but not the graphs. However, this is not recommended, you should do all your data table manipulation before creating your PowerPoint results.
From EG ODS PowerPoint statement, can you specify a pre-defined 'blank' page like the blank slide you showed in SAS Microsoft add-on?
No, there is no option that will insert a blank slide, but you can add ODS startpage = NOW; in between procedures to ensure new procedure results start on a new page.
Is the SAS add-in in MS Office the only way to output to a design template? Or could I do this directly from SAS PC 9.4?
Designing a custom PowerPoint template in SAS PC 9.4 can be done with Proc Template. Here is a link to a helpful paper.
Can you build interactive reports in PowerPoint?
No, it's pretty much a static PowerPoint result. The add-in gives you the most type of interactivity in that you're working directly in SAS in PowerPoint. If you're building your tasks, you're already in PowerPoint with the add-in, but not with the ODS statements.
The main issue I've had with ODS PowerPoint is that it adds cell padding to the bottom of cells. If I make the same table in RTF, the table is more compact when I copy that into PowerPoint vs using ODS PowerPoint directly. In the past, I've been told it's not possible to remove this padding. Has this been updated at all? It makes tables that should fit a slide not fit at times.
Try creating a custom Style with Proc Template:
proc template;
define style styles.custom;
parent = styles.powerpointlight;
style Graph from Graph /
padding = 0;
end;
run;
Link to Padding= Documentation
How can we preview the styles in SAS PC (9.4)?
You can create a list of the style names in SAS PC 9.4, but there is no option to preview.
proc template;
list styles;
run;
My SAS add-ins to Microsoft crashes all the time, do you know what could be the reason for that?
I'm not sure. You're going to have to check with our Technical Support on that one.
How can we put multiple output results into one slide?
Try adding the LAYOUT= TWOCONTENT to your ODS statement. Keeping in mind that the size of your results may not fit on one page even with this option. You may need to add other options to reduce the size of your output. Consult the documentation.
ods powerpoint file="c:\temp\test.pptx" layout=twocontent;
Is it possible to insert a slide to an existing PowerPoint (using either enterprise guide or SAS studio)?
The file created with the ODS PowerPoint statement will be overwritten every time you execute the code, so you would have to copy and paste to an existing presentation to avoid overwriting it.
My organization has a PowerPoint style template. Is there any way in SAS to use that style template easily, or would this require working with PROC TEMPLATE instead?
Can you use a customized PPT style?
Yes. After you have created your .pptx file with the ODS PowerPoint statement. Open the created file in PowerPoint, go to the Design Tab, and choose your customized style. Or, copy and paste your SAS PowerPoint results into your company template.
Is the output in an accessible format when put into PowerPoint?
Overview of the Accessibility System Options
Can we specify a slide number to insert output?
A slide number, there should be an option for that. We'll have to explore the options. It should be able to specify a slide number. So, I should have mentioned that there are additional options you can add to that ODS statement where you can do a little bit more with the output. I just wanted to show you the basics in all the interfaces today. But there's a lot of customization that you can do with different options on that ODS statement. Slide numbers are turned on with the global options statement:
Options number; You cannot specify a specific slide number to insert output;
Is there a way of setting the no. of pages?
That's exploring the options. So, you want to take a look at the documentation on the ODS PowerPoint statements, specifically for PowerPoint and explore all the options. Slide numbers are turned on with the global options statement:
Options number;
In EG, how do you select just one output (a bar chart, for example)?
If you're using the task, then it would be the output for that bar chart task and then you would go into the properties of that bar chart task and only choose the options for PowerPoint for that particular task, if I understand the question correctly. OK, so it's a matter of just choosing that task and that result.
If I'm running separate pieces of code that produce different charts, can SAS insert the charts in separate slides? The code does not use by statements.
So, you have multiple procedures. I only had a one procedure, the PROC print, but I could have had a PROC print, PROC frequency, PROC univariate, multiple procedures. Long as you've got that ODS statement at the top, it's open, ODS close. All the results from all those different procedures will go to the same file specified. You can apply it to multiple procedure results. I only showed you one procedure, but it could be multiple procedures. So, all those procedure results will go to the same file and all separate slides would be created.
ODS STARTPAGE = YES; inserts a new slide at the start of each new table or graph
Can Visual Analytics reports be converted to PowerPoint?
In Visual Analytics, you can export and image which saves as a .PNG file that you can copy and paste to PowerPoint.
Can I create PowerPoint results directly from a SAS table?
No, PowerPoint results can only be created from a Procedure result.
Are the results in PowerPoint dynamic, meaning if source files changes do they update?
Only in the MS-Add-in, you can refresh the results. If using the ODS statements, you must re-run the code to re-create the output .pptx file.
Testing on SAS EG and getting the following error: ERROR: Insufficient authorization to access /opt/sas/Config/Lev1/SASApp/c:\ppttest.ppt.
Yeah, that's a Technical Support question. Just check the file path that you have a proper file path that you're writing to.
Is there somewhere to see examples of all of the different styles for people who use SAS Studio? Maybe a link?
You can create a list of the style names, but there is no option to preview.
proc template;
list styles;
run;
Hello, can you create one in Enterprise Guide?
If you're writing code in Enterprise Guide, just use those ODS statements. If you're using the tasks, you're going into the properties of the task and changing the results options.
Recommended Resources
Creating PowerPoint Output
Setting PowerPoint Results Options
SAS® Programming 1: Essentials
SAS® Office Analytics: Getting Started
Please see additional resources in the attached slide deck.
Want more tips? Be sure to subscribe to the Ask the Expert board to receive follow up Q&A, slides and recordings from other SAS Ask the Expert webinars.
... View more