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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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