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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.