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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 573 views
  • 0 likes
  • 2 in conversation