BookmarkSubscribeRSS Feed
Inp
Obsidian | Level 7 Inp
Obsidian | Level 7
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;
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
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
Inp
Obsidian | Level 7 Inp
Obsidian | Level 7
Thanks Cynthia, It solved my problem.


Thanks so much again.


Inp

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 1972 views
  • 0 likes
  • 2 in conversation