SAS Procedures

Help using Base SAS procedures
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
SAS Super FREQ
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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