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