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

Hi guys ,

 

I saw this code somewhere when we do ODS rtf, it is really does the job, but I don't know why and how.

 

 

 

%let topbrdr = ^R'\brdrt\brdrs\brdrw10';      /*draw a line on top of footnote*/

footnote4 j=left "&topbrdr Program Name xxx ooo";

 

 

the other one is  "^R'\li380'"  in the following code;

 

data final;
set all;

if ord ne 1 then print="^R'\li380'"||trim(left(stat));       /*add blank before stat*/
else print = trim(left(stat));


run;

 

if i give a bigger number than 380, then add more blank before stat;

 

 

my question is where I can find information about this  ?

any idea ?

 

Thank you very much.

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

Hi:
That is a mix of syntax. The ^R is SAS syntax -- using ODS ESCAPECHAR to pass "raw" control strings to a destination. The "raw" capability can pass HTML tags or RTF control strings to their respective destinations. what comes after the ^R is an RTF control string. You'd look that up in an RTF reference like this one: http://www.biblioscape.com/rtf15_spec.htm or an O'Reilly book on RTF.
Hope this helps,
Cynthia
(PS -- this was pre 9.2 syntax for ^R -- the syntax has changed for ODS ESCAPECHAR since I wrote this paper: https://support.sas.com/resources/papers/proceedings/proceedings/forum2007/099-2007.pdf)

View solution in original post

2 REPLIES 2
Cynthia_sas
Diamond | Level 26

Hi:
That is a mix of syntax. The ^R is SAS syntax -- using ODS ESCAPECHAR to pass "raw" control strings to a destination. The "raw" capability can pass HTML tags or RTF control strings to their respective destinations. what comes after the ^R is an RTF control string. You'd look that up in an RTF reference like this one: http://www.biblioscape.com/rtf15_spec.htm or an O'Reilly book on RTF.
Hope this helps,
Cynthia
(PS -- this was pre 9.2 syntax for ^R -- the syntax has changed for ODS ESCAPECHAR since I wrote this paper: https://support.sas.com/resources/papers/proceedings/proceedings/forum2007/099-2007.pdf)

Zhenbin
Fluorite | Level 6
Thank you for your reply,Cynthia.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1008 views
  • 1 like
  • 2 in conversation