Titles and footnotes are incorrectly written to the ODS RTF destination if the BODYTITLE option is in effect and an ODS SELECT NONE statement is specified. The ODS SELECT NONE statement should exclude the titles and footnotes as well as the procedure output from the RTF file until the destination is turned back on. If you are running the FREQ procedure, you will also see the procedure title "The Frequency Procedure".
The code below replicates the issue in SAS® 9.3 or SAS® 9.4:
ods rtf file="title.rtf" bodytitle ;
title1 "Running on SAS &SYSVER";
title2 "This Title should display";
proc means data=sashelp.heart;
var height;
run;
ods select none;
title "The Title and the Freq procedure should not be displayed";
proc freq data=sashelp.heart ;
tables sex;
run;
ods select all;
title 'Second Title';
proc print data=sashelp.class(where=( sex='F'));
run;
ods rtf close;
To circumvent the problem, do one of the following:
ods rtf exclude all;