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!
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
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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.