sas help:
Notes | For RTF output, the ~ , * , or # can also be used. The \ is a special RTF character. Therefore, it is recommended that you use an escape character other than \ for RTF output. |
ESCAPECHAR就是做一些 inline formating,简单说就是SAS操作RTF,改变字体颜色,下划线等。
主要分为三块:
1. 页码相关的
~{lastpage}
~{thispage}
~{pageof}
2. 空格换行相关的
~{nbspace num}
~{newline num}
3. unicode相关的
4. style相关的
5. 其它
~{super }
~{sub }
~{raw }
options nodate nonumber; ods html close; ods escapechar="~"; ods rtf file="./_escapechar.rtf"; e. title1 j = l "lastpage----~{lastpage}"; title2 "PAGEOF-----~{pageof}"; title3 "~THISPAGE----~{thispage}"; title4 "aa~{nbspace 3}cc"; title5 "aa~{newline 3}cc"; title5 'Example of ~{raw \cf12 RAW} RAW function'; title6 "sigma-----~{sigma} a~{sub n}~{super d}"; title7 "sigma-----~{unicode SIGMA}"; title8 "title8~S = {color = red } aaaaaaaa"; title9 "~{style [color = red] aa} aa"; proc print data=sashelp.class(obs=4); run; ods _all_ close;