The STARTPAGE= option is used to control page breaks with ODS output. However, page breaks are not suppressed when the NOTITLES option is specified on a FILE PRINT statement. Removing the NOTITLES option corrects the problem. The sample below incorrectly creates two pages of output instead of one:
ods pdf file="file.pdf" startpage=no;
title;
data _null_;
file print notitles;
put "First data _null_" ;
run;
data _null_;
file print notitles;
put "Second data _null_" ;
run;
ods pdf close; close;