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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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