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;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
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.