BookmarkSubscribeRSS Feed
whs278
Quartz | Level 8

Hi,

 

I'm trying to output a pdf with plots from sgpanel with a title on the first page.  However, when I try to add a title, it ends up on the last page.  I would like the title to appear on the first page.  I know I can use ODS TEXT, but I would like the title to have multiple lines.

 

Here is my code.

 

GOPTIONS DEVICE=PNG;

ods pdf file = '/FILEPATH/PLOT.pdf';

title 'My Plot';
title2 'My subtitle'; title3 'My second subtitle';
proc sgpanel data = HAVE; panelby group_variable; scatter x = x_variable y = y_variable; run; title; title2; title3; ods pdf close;

Thanks,

 

Bill

1 REPLY 1
ballardw
Super User

Please show the LOG of the code that you actually ran. Copy from the log from the ODS PDF statement to the ODS PDF Close including all notes, warnings or other messages. Paste into a code box opened on the forum with the </> icon to preserve the formatting of the log text.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 310 views
  • 0 likes
  • 2 in conversation