BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

Does anyone have any ideas on how to underline text using ODS layout (obj.format_text(text: "blah blah") etc).

I've tried a variety of things ( such as using ODS escape char and appending "~S={text_decoration=underline}" to the text) without success.

Any help/guidance would be appreciated.
4 REPLIES 4
Cynthia_sas
SAS Super FREQ
Hi:
It looks from this site like text decoration is not production until 9.2 for PDF.
http://support.sas.com/rnd/base/topics/new92/92pdf.html

For RTF, you may be able to use RTF control strings in 9.1.3. Tech Support is probably your best bet for help with this. I believe ODS LAYOUT is experimental right now, as well.

cynthia
deleted_user
Not applicable
Hi Cynthia,

Thanks for the response - I'll try Tech Support but other than that looks like I'll have to wait for 9.2.
Duong
Obsidian | Level 7
Hi

If you are using RTF then you can attach this "\brdrb\brdrs\brdrw15" to your text.

I am not sure about other ODS destination. I have not tried them out but my belief is that
it should be the same principal because all you do is just attach some instruction to your text for rendering. You just need to find the control words for the ODS destinations and the syntax for it. Love to know if this work for other ODS destination as well.



Duong
Cynthia_sas
SAS Super FREQ
Hi,
Only Markup Language destinations have tags or dot commands that you can change. ODS Markup includes (but is not limited to) HTML, WML, TROFF, LaTex, Pyx, XML, etc.

The RTF destination will allow you to insert RTF control strings IF you know the correct ones, but even then, sometimes you cannot get to the right place to insert the control string in the current method of creating RTF output files. The PDF destination produces a proprietary (to Adobe) format file and there are not any "control" strings available for PDF the way there are for HTML or RTF.

When "measured" RTF comes down the road in SAS 9.2, things will improve in this regard.

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
  • 841 views
  • 0 likes
  • 3 in conversation