I have done something similar very long time ago. The main logic is to write all output to a text file and then ommit the "new page" control lines.
Check the output file, first 2-3 pages of next code and locate the "new page" control lines:
filename myprint '<folder and file name>.txt;
proc printto file=myprint; run;
... enter yor code ...
proc printto; run;
then do:
ods pdf file= <ods file folder and name>.pdf;
data _null_;
infile myprint truncover;
input a_line $;
if a_line = "1 " then delete; /* target - ommit new page control line; May need correction */
run;
ods pdf close;
I'm not sure proc printto is available on all sas platforms.
Above code is not tested. I hope it should give you the hint how to solve the problem.
I'm adding here my test done owith SAS On Demand for Academics:
/* target: ommit break page lines */
filename myprint '~/reports/myprint.txt';
proc printto print=myprint; run;
proc print data=sashelp.class; run;
proc print data=sashelp.cars; run;
proc printto; run;
data _null_;
length a_line $132;
infile myprint truncover;
input a_line $132.;
if substr(a_line,1,1) = 'FF'x then delete;
file print;
put a_line;
run;
You still may want to remove some titles or headings.
... View more