The ODS POWERPOINT statement creates
output formatted for PowerPoint. Suppose you want PowerPoint slides
for all of your output. To create this output, wrap (sandwich) the
ODS POWERPOINT statement and ODS POWERPOINT CLOSE statement around
your program. Use the FILE= option to specify the name and path for
your file. The output opens in PowerPoint. Because the HTML destination
is open by default, it is good practice to close the HTML destination
if you do not want HTML output. This saves system resources.
ods html close;
options nodate nonumber;
proc sort data=sashelp.prdsale out=prdsale;
by Country;
run;
ods powerpoint file='your-file-path/Prdsale.ppt';
title 'Actual Product Sales';
title2 '(millions of dollars)';
proc tabulate data=prdsale;
class region division prodtype;
classlev region division prodtype;
var actual;
keyword all sum;
keylabel all='Total';
table (region all)*(division all),
(prodtype all)*(actual*f=dollar10.) /
misstext=[label='Missing']
box=[label='Region by Division and Type'];
run;
title "PROC UNIVARIATE Output";
title2;
proc univariate data=prdsale;
by Country;
var actual;
run;
title 'Sales Figures for First Quarter by Product';
proc sgpanel data=prdsale;
where quarter=1;
panelby product / novarname;
vbar region / response=predict;
vline region / response=actual lineattrs=GraphFit;
colaxis fitpolicy=thin;
rowaxis label='Sales';
run;
title "PROC PRINT Output";
proc print data=sashelp.prdsale;
run;
ods powerpoint close;
PROC TABULATE Output Viewed in PowerPoint
PROC SGPANEL Output Viewed in PowerPoint