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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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