Hi everyone, I'd like to modify some of the events in the RTF tagset via PROC TEMPLATE in SAS 9.4 by creating a new tagset and setting the PARENT to RTF (similar to what's outlined here: http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002285940.htm.) As a first step, I decided to try creating a new tagset that fully inherits the RTF tagset (no modifications.) I used the following to do that: PROC TEMPLATE;
DEFINE TAGSET TAGSETS.RTF_MOD /STORE=SASUSER.TEMPLAT;
PARENT=TAGSETS.RTF;
END;
RUN; The TEMPLATE code above ran without any problems, but when I attempt to use the new TAGSETS.RTF_MOD, I get strange results. Here's the code I used to try creating a new RTF using the RTF_MOD tagset: ODS TAGSETS.RTF_MOD FILE = '[Output directory]\Testing.rtf';
ODS TEXT = 'TESTING 123';
ODS TAGSETS.RTF_MOD CLOSE; And here's the output I got in my "Testing.rtf" file (when viewed through MS Word): {\fonttbl } {\colortbl; } {\*\bkmkstart IDX}{\*\bkmkend IDX} } It looks like perhaps the RTF control words are being saved as plaintext, rather than as an RTF - am I missing something in my code above? If I use the same ODS code as above, but change the destination from RTF_MOD to RTF, then the RTF file is created correctly. Not sure what I'm doing wrong.... Any insights are appreciated - thank you in advance!
... View more