When the STARTPAGE= option is set to NO, OFF, or NEVER, and output from more than one procedure or DATA _NULL_ step is routed to ODS PRINTER (PS/PCL/PDF) or ODS RTF, only the first set of titles and footnotes are written to the output file.
The REPORT procedure allows verbiage to be written to the top and bottom of a table with LINE statements in COMPUTE BEFORE/AFTER _PAGE_ blocks. However, in order to add text to the files between the tables created by other procedures or the DATA step, use the TEXT= option in the ODS statement, as shown in the sample code in the Full Code section.
The sample code below uses the TEXT= option to place text in between tables in the ODS RTF and ODS PDF destinations.
See SAS Note 8044, "The TEXT= option in the ODS PRINTER/RTF statement is always left-justified", for help with adjusting the alignment of this text.
ods pdf file='file.pdf' startpage=no;
ods rtf file='file.rtf' startpage=no;
proc print data=sashelp.class(obs=1);
run;
ods pdf text="This is my interim title";
ods rtf text="This is my interim title";
proc print data=sashelp.class(obs=1);
run;
ods _all_ close;