BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I would like to insert a horizontal line at the top of my footnotes.
I believe this can be acheived using RTF, but am unsure exactly how to go about doing it.
Can anybody please provide assistance?

Many thanks.
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi, Here are some program techniques that you can use. They show using both ODS ESCAPECHAR (set to '^' and used for ^{pageof} in the title and the ^S in the footnote and the insertion of RTF control strings into footnote text for the line. The RTF strings should be passed as shown below, with the space after the 'brdrw1 '. (I included the ^{pageof} example because most of my students who want the footnote line also want the ^{pageof} in their output.

If you are using SAS 8.2, then ODS ESCAPECHAR for ^S will work for you; however, ^{pageof} is a technique that will only work in SAS 9. If you are not using SAS 9, there is an RTF control string that will do that same thing as ^{pageof}. You can find that string described here:
http://support.sas.com/faq/040/FAQ04010.html
cynthia
[pre]
options nodate nonumber;

title1 j=l font='Arial' h=10pt "Some Pharma Name";
title2 j=l font='Arial' h=10pt "Protocol XXX"
j=r font='Arial' h=10pt "^{pageof}";

title3 j=c font='Arial' h=10pt "Table xxx 7.2";
title4 j=c font='Arial' h=10pt "Listing of Serious Adverse Events";

** make sure there is a SPACE between the 1 and the quote;
** in the second line of the footnote below;
** The \~ is used for a non-breaking space in RTF at the end of the footnote;
footnote j=l font='Arial' h=10pt
"^S={protectspecialchars=off "
"pretext='\brdrt\brdrs\brdrw1 '}"
"\~";
footnote2 j=l font='Arial' h=10pt "(+: Relative to the date of the first application.)";
footnote3 j=l font='Arial' h=10pt "Prepared by: Fred Rogers"
j=r font='Arial' h=10pt "%sysfunc(datetime(), datetime16.)";


ods listing close;
ods rtf file='c:\temp\stuff.rtf';

ods escapechar='^';
proc print data=sashelp.shoes(obs=150);
var region product subsidiary sales returns;
run;

ods rtf close;
title; footnote;
[/pre]

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
  • 1 reply
  • 575 views
  • 0 likes
  • 2 in conversation