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")

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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