Help using Base SAS procedures

in proc report, how to not display the headers in the last summary page

Reply
Contributor
Posts: 35

in proc report, how to not display the headers in the last summary page

Here is my question.

I 'compute' after the rbreak/page, and list all the summary lines in one last page. But I don't want to have the report column headers shown on this page. Any suggestions?

Thanks a lot,
SAS Super FREQ
Posts: 8,862

Re: in proc report, how to not display the headers in the last summary page

Hi:
Although PROC REPORT has a NOHEADER option, it does apply to the entire report -- so you can not suppress headers only on the last page of the report. However, you could selectively use NOHEADER to put a separate PROC REPORT step at the end of your report without the headers. Something like what's shown below...there's no compute block, since this was a simple NOHEADER example.

cynthia
[pre]
ods html file='nohead.html' style=sasweb;
ods rtf file='nohead.rtf' startpage=no;

proc report data=sashelp.class nowd;
title 'Average Height by Gender and Age';
column age sex height;
define age / group;
define sex / group;
define height / mean;
run;

proc report data=sashelp.class noheader nowd;
title 'Average Height by Gender';
column sex height;
define sex / group;
define height /mean;
run;

proc report data=sashelp.class noheader nowd;
title 'Average Height by Age';
column age height;
define age / group;
define height / mean;
run;

ods _all_ close;
[/pre]
Contributor
Posts: 35

Re: in proc report, how to not display the headers in the last summary page

Posted in reply to Cynthia_sas
Thank you so much. I forgot about this
Ask a Question
Discussion stats
  • 2 replies
  • 126 views
  • 0 likes
  • 2 in conversation