BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5
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
Calcite | Level 5
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
Calcite | Level 5
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.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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