Hello all. I'm trying to create a simple table within an ODS RTF, with a caption centered underneath the table (as opposed a footnote all the way at the bottom of the page).
However, the text appears on the far left, rather than being centered. I have not been able to find a way to center that caption text.
Any help is appreciated, thank you.
Here is the code:
ods rtf file="c:\outputPERSON.rtf";
proc tabulate data = request3 format=value12.0; class agecat rsha_lhj; table rsha_lhj ALL, agecat ALL;
format agecat agecatlabels.;
label rsha_lhj='County'; run;
ods text=" ";
ods text=" ";
ods text="Does not include counts under 5.";
ods rtf close;
Hi,
you need to use some thing like this..
ods escapechar='^';
ods text ="^S={width=100% just=c } Go to SAS HomePage" ;
Thanks,
Shiva
Hi Shiva- thanks for reply. I tried pasting the code in from that post, and what I get in the ouput RTF is:
-----
^S={width=100 just=c url='http:\\www.sas.com'hreftarget='_blank'} Go to SAS HomePage
----
(which by the way is left justified). It's as if something doesn't know that the S={} part is supposed to be processed. Any ideas what may be wrong?
Thanks.
Hi,
you need to use some thing like this..
ods escapechar='^';
ods text ="^S={width=100% just=c } Go to SAS HomePage" ;
Thanks,
Shiva
Thank you very much!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.