BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a SP Proc Report that we run on the Portal.
One of the output choices is HTML. While the PDF export will repeat the column header on each page, I cannot figure out how to repeat the header on HTML. Since there is no true page on HTML, I would want to do the column header at each break.
Is this possible?
In the example below, the column header should repeat again after the level2 break:

proc sort data=SASHELP.COMPANY
out=sortcmy;
by level2;
run;

proc report data=work.sortcmy nowd;
title "Company";
column level1 level2 level5;
define level1 / group 'Company';
define level2 / group 'Country';
define level5 / display 'Emp';

break after level2 / ol skip ;
run;

Thank you
-Patrick
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Try modifying your BREAK AFTER statement like this:
[pre]
break after level2 / page;
[/pre]

with the PAGE option. I removed OL and SKIP because those are ignored by ODS HTML, RTF and ODS PDF. For ODS HTML, this should put a Horizontal rule between each logical "page" (even though HTML is not a paged destination) but it should also repeat the column headers for you.

cynthia
deleted_user
Not applicable
Thank you. I was being dense. I blame it on being Friday!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 672 views
  • 0 likes
  • 2 in conversation