The SAS Output Delivery System and reporting techniques

using ODS powerpoint: NOGTITLE option

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

using ODS powerpoint: NOGTITLE option

Hi there,

 

I am experimenting with using ods powerpoint, however I am experiencing an issue where the nogtitle option isn't working: the title still appears above the graph I am outputting in addition to at the top of the slide.

 

(Running SAS 9.4.1)

 

Any advice would be appreciated :-)

 

options nodate nonumber;

ods powerpoint file="test.pptx" nogtitle layout=twocontent;

title1 'title';

proc gplot data=test;
	plot y*x / haxis=axis1 vaxis=axis2 autovref;
run;
quit;

proc odslist;
	item 'bullet1';
	item 'bullet2';
run;

ods powerpoint close

slide.PNG(axis labels and values have been hidden) 


Accepted Solutions
Solution
‎09-08-2017 11:42 AM
Super User
Posts: 13,008

Re: using ODS powerpoint: NOGTITLE option

[ Edited ]

But with

SYSVLONG=9.04.01M4P110916

I get two titles same as OP using @ChrisNZ program.

 

However switching to SGPLOT

proc sgplot data=sashelp.class;
	scatter x=weight y=height /;
run;

instead of Gplot and the title inside the graph goes away.

 

 

So @JamesW may want to try using SGPLOT instead of Gplot.

View solution in original post


All Replies
PROC Star
Posts: 2,220

Re: using ODS powerpoint: NOGTITLE option

[ Edited ]

Your code works fo for me.

options nodate nonumber;

ods powerpoint file="%sysfunc(pathname(work))\test.pptx" nogtitle layout=twocontent;

title1 'title';

proc gplot data=sashelp.class;
	plot weight*height / autovref;
run;
quit;

proc odslist;
	item 'bullet1';
	item 'bullet2';
run;

%put &=sysvlong;
ods powerpoint close;

SYSVLONG=9.04.01M2P072314

 

Capture.PNG

Solution
‎09-08-2017 11:42 AM
Super User
Posts: 13,008

Re: using ODS powerpoint: NOGTITLE option

[ Edited ]

But with

SYSVLONG=9.04.01M4P110916

I get two titles same as OP using @ChrisNZ program.

 

However switching to SGPLOT

proc sgplot data=sashelp.class;
	scatter x=weight y=height /;
run;

instead of Gplot and the title inside the graph goes away.

 

 

So @JamesW may want to try using SGPLOT instead of Gplot.

New Contributor
Posts: 2

Re: using ODS powerpoint: NOGTITLE option

[ Edited ]

Thanks for your help, I'll use sgplot in future if I come across the same problem. :-)

 

In the mean time, I have been using proc odstext inside an ods layout to create my slide titles, which is more flexible and customisable, so probably a better solution all round.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 337 views
  • 0 likes
  • 3 in conversation