Help using Base SAS procedures

How to add more space in title

Reply
Frequent Contributor
Frequent Contributor
Posts: 81

How to add more space in title

Hi

See my below coding. I have a question regarding title statment.

If you look up my title statment. I have added few spaces(added 16 spaces for some reason it is shrinked in this posting) between text1 and text2. If I want to put around 180 space between text1 and text 2, is there any simpler way to do this rather than putting 180 spaces between text1 and text2. Your help is more appriciated. Thanks for your help in advance.



data temp;
input x $1.;
cards;
1
2
3
3
3
;
run;


proc print data=temp;
title 'test1 test2';
run;
SAS Super FREQ
Posts: 8,740

Re: How to add more space in title

Hi:
If you are trying to right and left justify text strings in ODS destinations (other than LISTING), you can do this:
[pre]
title j=l 'Text1'
j=r 'Text2';
[/pre]

This technique will NOT work for the Output Window, but will be respected for ODS HTML, ODS RTF and ODS PDF.

cynthia
Frequent Contributor
Frequent Contributor
Posts: 81

Re: How to add more space in title

Thanks Cynthia, It solved my problem.


Thanks so much again.


Inp
Ask a Question
Discussion stats
  • 2 replies
  • 212 views
  • 0 likes
  • 2 in conversation