BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ucdcrush
Obsidian | Level 7

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;

1 ACCEPTED SOLUTION

Accepted Solutions
shivas
Pyrite | Level 9

Hi,

you need to use some thing like this..

ods escapechar='^';

ods text ="^S={width=100% just=c } Go to SAS HomePage" ;

Thanks,

Shiva

View solution in original post

4 REPLIES 4
ucdcrush
Obsidian | Level 7

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.

shivas
Pyrite | Level 9

Hi,

you need to use some thing like this..

ods escapechar='^';

ods text ="^S={width=100% just=c } Go to SAS HomePage" ;

Thanks,

Shiva

ucdcrush
Obsidian | Level 7

Thank you very much!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 4 replies
  • 7183 views
  • 1 like
  • 2 in conversation