BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6
Titile1 'aaaa';
Titile2 'bbb';
Proc print data=sashelp.class;
Run;

How to keep one line gap between title1 and titile2;
7 REPLIES 7
PeterClemmensen
Tourmaline | Level 20

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
Fluorite | Level 6
Without using title2 statement
Kurt_Bremser
Super User

@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.

rajdeep
Pyrite | Level 9

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.

thanikondharish
Fluorite | Level 6
I have 7 titile lines every two titles we should keep one line gap
rajdeep
Pyrite | Level 9

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....

Reeza
Super User
Modify your style templates.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 2915 views
  • 1 like
  • 5 in conversation