A 2 step approach:
1) Spell title correctly 😉
2) Simply assign no title to Title2 and set Title3 to 'bbb'
Title1 'aaaa';
Title2;
Title3 'bbb';
Proc print data=sashelp.class;
Run;
@thanikondharish wrote:
Without using title2 statement
Just omit it. Setting a specific title item automatically clears all "higher" titles.
For the umpteenth time: READ THE DOCUMENTATION. It won't make your head explode. I promise.
Hi Harish,
1.I think the code you posted in that title is misspelled .
2. If you need a gap between two titles then keep the second title as in title3.
Title1 'aaaa';
Title3 'bbb';
Proc print data=sashelp.class;
Run;
Please share the output style, so that more accurate result you can get.
Thanks and Gud luck.
Hi Harish,
1. Either you can adjust your two titles with one title statement with Justify left and right options.
2. You can use LSPACE and wrap options for 2 titles and height of the text.
Title1 JUSTIFY= center 'aaa' LSPACE=1 wrap;
Title2 'bbb' JUSTIFY= CENTER LSPACE=1;
title3 'ccc' JUSTIFY= CENTER LSPACE=2 wrap;
title4 'ddd' JUSTIFY= CENTER LSPACE=2 wrap;
Proc print data=sashelp.class;
Run;
I am not sure, bcoz if there are 7 titles with one line blank space then the report might look like with much bottom aligned, so it might not look good I believe. I think you can try using the options of Height, Lspace, Wrap and Justify in the title statement and can try to adjust the alignment of your titles.
Thanks...Gud Luck....
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.