BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JamesW
Calcite | Level 5

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

(axis labels and values have been hidden)(axis labels and values have been hidden) 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

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

ballardw
Super User

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.

JamesW
Calcite | Level 5

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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