BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
_Hopper
Obsidian | Level 7

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
Chevell_sas
SAS Employee

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;

View solution in original post

1 REPLY 1
Chevell_sas
SAS Employee

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;

sas-innovate-white.png

🚨 Early Bird Rate Extended!

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.

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 577 views
  • 0 likes
  • 2 in conversation