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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.