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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.