I have an rtf template, with the following code:
class SystemFooter "overlines first footnote" /
font =Fonts('FooterFont')
protectspecialchars=off
pretext='\brdrt\brdrs\brdrw1 ' ;
The idea is to produce a solid line at the bottom of the page without the need for an extra footnote statement. This does work. However, I need to put a complete program path in the footnote area (with slashes and colons), and they disappear because of the "protectspecialchars" statement. Are there any workarounds for this? I can get the program name only to appear by using a %scan function on the PROGRAMPATH macro variable, but that is a less desirable solution.
Try the below which uses a slash prior to the slash or colon in the path and see if this generates the desired output..
proc template;
define style styles.test;
parent=styles.rtf;
class SystemFooter "overlines first footnote" /
font =Fonts('FooterFont')
protectspecialchars=off
pretext='\brdrt\brdrs\brdrw1 ' ;
end;
run;
ods rtf file="c:\output\temp.rtf" style=styles.test;
proc print data=sashelp.class;
footnote "this is a test c\:\\temp\\temp.rtf";
run;
ods rtf close;
Try the below which uses a slash prior to the slash or colon in the path and see if this generates the desired output..
proc template;
define style styles.test;
parent=styles.rtf;
class SystemFooter "overlines first footnote" /
font =Fonts('FooterFont')
protectspecialchars=off
pretext='\brdrt\brdrs\brdrw1 ' ;
end;
run;
ods rtf file="c:\output\temp.rtf" style=styles.test;
proc print data=sashelp.class;
footnote "this is a test c\:\\temp\\temp.rtf";
run;
ods rtf close;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.