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.
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)
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)
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!
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.