Hello,
When I replay all content in a catalog my pagebreak=no is being honoured. However when I specifty individual REPLAY statements it seems that each REPLAY statement is adding a PAGEBREAK.
ods document name=test(write);
PROC ODSTEXT contents=" " pagebreak=no;
p "header1";
RUN;
PROC ODSTEXT contents=" " pagebreak=no;
p "header2";
RUN;
ods document close;
proc document name=test;
list / levels=all details;
replay;
run;
quit;
proc document name=test;
replay \ODSText#1\TextBlock#1;
replay \ODSText#2\TextBlock#1;
run;
quit;
Running this code results in this. Notice, no page break in the first proc document. The second proc document results in a pagebreak between the two items. Any ideas very welcome!
kind regards,
Richard
oops well this is embarrassing. When all else fails read the manual....
| There is an initial page break for each destination for each use of the REPLAY statement. There might be subsequent page breaks depending on the destination and the output being generated. |
So the answer to my problem is very simple -
proc document name=test;
replay \ODSText#1\TextBlock#1, \ODSText#2\TextBlock#1;
run;
quit;
oops well this is embarrassing. When all else fails read the manual....
| There is an initial page break for each destination for each use of the REPLAY statement. There might be subsequent page breaks depending on the destination and the output being generated. |
So the answer to my problem is very simple -
proc document name=test;
replay \ODSText#1\TextBlock#1, \ODSText#2\TextBlock#1;
run;
quit;
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.