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

Hi SAS Experts,

I am creating a base SAS report using PROC REPORT and the destination is ODS PDF. My report is long and is having multiple pages. SAS prints the headers specified in the COLUMN statement on the top of every page. Is there an option to print the headers only on the first page?

Thank you for your helps! 

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:
  No, there is not a specific option to do what you want for an entire report. But, there is a NOHEADER option. The challenge with NOHEADER is that it applies to all the pages on the report. So what you can do is this: you could print the first page with headers and then print all the rest of the pages without headers using the NOHEADER option of PROC REPORT. So the basic model would be:


proc report data=xxxx(firstobs=1  obs=50);
run;
 
proc report data=xxxx(firstobs=51) noheader;
run;



You may have to adjust the obs=value on the first PROC REPORT to make sure that the number of obs plus your titles and footnotes, all fits on the first page.

cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:
  No, there is not a specific option to do what you want for an entire report. But, there is a NOHEADER option. The challenge with NOHEADER is that it applies to all the pages on the report. So what you can do is this: you could print the first page with headers and then print all the rest of the pages without headers using the NOHEADER option of PROC REPORT. So the basic model would be:


proc report data=xxxx(firstobs=1  obs=50);
run;
 
proc report data=xxxx(firstobs=51) noheader;
run;



You may have to adjust the obs=value on the first PROC REPORT to make sure that the number of obs plus your titles and footnotes, all fits on the first page.

cynthia

sas_cc
Calcite | Level 5
Got it. Thank you very much for response and the alternative solution Cynthia! 🙂

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1777 views
  • 1 like
  • 2 in conversation