Creating an RTF file using a modified version of TAGSETS.RTF generates an RTF file without any style information


Creating an RTF file using a modified version of TAGSETS.RTF in SAS® 9.3 creates an RTF file that does not contain any style information.

To circumvent this problem, add the MEASURED option in the modified tagset to flag that this is a measured destination. Also, the default style has to be set by using the DEFAULT_STYLE= option.

The example code below demonstrates a workaround generating a modified version of TAGSETS.RTF in SAS 9.3 while maintaining the styles.

proc template;
   measured;
   define tagset tagsets.newrtf;
     parent=tagsets.rtf;
     default_style="styles.rtf" ;
   end;
run;

ods tagsets.newrtf file="c:\temp.rtf";

proc print data=sashelp.class;
run;

ods tagsets.newrtf close;