BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RichardP
Quartz | Level 8

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!

 

RichardP_0-1600431814408.png

 

kind regards, 

 

Richard

1 ACCEPTED SOLUTION

Accepted Solutions
RichardP
Quartz | Level 8

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;

 

 

View solution in original post

1 REPLY 1
RichardP
Quartz | Level 8

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;

 

 

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1220 views
  • 0 likes
  • 1 in conversation