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.
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.
could you please give example on how you need he display to help understand better
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
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.
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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.