BookmarkSubscribeRSS Feed
a_ramos
Obsidian | Level 7

How do I remove the auto generated page break in these 2 proc report with html output?

It generates this code snippet that I want to remove: <p style="page-break-after: always;"><br></p>

 

PROC TEMPLATE;
DEFINE TAGSET TAGSET.CUSTOM;
PARENT=TAGSETS.HTML4;
EMBEDDED_STYLESHEET=OFF;
END;
RUN;

ODS TAGSET.CUSTOM FILE=REPORT OPTIONS(PAGEBREAKS="NO");
ODS NOPTITLE NOPROCTITLE;
PROC REPORT DATA=EMAIL_TRAT NOWD HEADLINE HEADSKIP
STYLE(REPORT)= {BACKGROUND = WHITE FONT_SIZE = 8PT FONT_SIZE = 9PT JUST=LEFT}
;RUN;

PROC REPORT DATA=EMAIL_TRAT2 NOWD HEADLINE HEADSKIP
STYLE(REPORT)= {BACKGROUND = WHITE FONT_SIZE = 8PT FONT_SIZE = 9PT JUST=LEFT}
;RUN;
ODS TAGSET.CUSTOM CLOSE;

1 REPLY 1
a_ramos
Obsidian | Level 7

hahaha I'm even ashamed. The problem was the 's'. just set OPTIONS(PAGEBREAK="NO")

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 720 views
  • 0 likes
  • 1 in conversation