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

Hello,

Is there a way to force a title to display 2 lines. Even if the test in the title fits in one line.

I have to side by side titles and I want them both the same size.

1 ACCEPTED SOLUTION

Accepted Solutions
mikek_sas
SAS Employee

Every time SAS sees a J= (justify) option in a title, the title goes to a new line.  So, something like the following:

  title j=l "This is the first part" j=l "This is the second part";

will split the title across two lines.

View solution in original post

4 REPLIES 4
manojinpec
Obsidian | Level 7

could you please give example on how you need he display to help understand better

DanH_sas
SAS Super FREQ

You can use TITLE1-TITLE9 to control which text is on which line. You can use the font attribute options to make the text sizes the same for each line. Does that answer your question?

Hope this helps,

Dan

mikek_sas
SAS Employee

Every time SAS sees a J= (justify) option in a title, the title goes to a new line.  So, something like the following:

  title j=l "This is the first part" j=l "This is the second part";

will split the title across two lines.

DanH_sas
SAS Super FREQ

Because it's not clear which procedure you are using, I will mention that the justication behavior described by Mike works for device-based graph procs (GCHART, GPLOT, etc.) but not for ODS Graphics (template-based) procedures (SGPLOT, SGPANEL, SGSCATTER). The TITLE statement technique should work in either case.

Thanks!

Dan

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
  • 4 replies
  • 1115 views
  • 4 likes
  • 4 in conversation