Cynthia,
Thanks for your help. The code you provided was useful for a generic header, which seemed to be a component of the table itself. This was close to what I wanted to do, but lacked the detail of the header itself (columns with labels of "Region", "Subsidiary", and "Total Sales") to be repeated for each "table" on the page. So I stumbled (ODS newbie) upon a different approach, in which I employed the "ods layout start rows= 3" prior to my call to proc report, and then using "break after region / page" within proc report to start a new page. I don't know if there happens to be an easier or more correct way to do this, but what results is 3 separate tables on one page, with the header being repeated, which is what I want. It does bring up a different question though. What if I don't know how many tables can be fit onto a single page? How might I be able to only fit complete tables onto a single page?
Here is the code with the layout approach, which on my machine in landscape, puts part of the last table onto a second page:
ods pdf file='c:\temp\before_line.pdf' uniform;
title 'Only Line Before';
ods layout start rows = 3;
proc report data=shoes nowd
style(report)={frame=box rules=all}
style(summary)={font_weight=bold};
where region in ('Asia', 'Canada', 'Pacific');
column region subsidiary sales;
define region /group;
define subsidiary /group;
define sales / sum;
break after region / page ;
compute before region / style(lines)=Header{just=l foreground=purple};
line 'Before Region: ' Region $25.;
endcomp;
run;
ods layout end;
ods _all_ close;
Thanks,
David
Message was edited by: Cx
Upon further analysis, I've also discovered that the "ods layout start rows = 3;" statement is no different than "ods layout start columns=1;"
A larger issue that I'm running into with respect to how output is rendered on the page can be seen by looking at all the regions (deleting "where region in ('Asia', 'Canada', 'Pacific');"). This causes the last "table" to be output and mushed up against the second to last table on the page. I don't know why this happens. I'm also using the following options statement, if it helps:
options orientation=landscape center
topmargin=0.25in
bottommargin=0.25in
leftmargin=0.25in
rightmargin=0.25in ;
Message was edited by: Cx