I'm trying to print a set of reports which have many bivariate tables in PDF, with various column variables with different number of categories. I'd like the column categories to have a fixed width (say, 1cm wide for each statistic) and the row category (header) to fill the remainder of the space on the table.
I can get this to work in HTML, but not in PDF.
Details: I am doing this in 9.4 TS1M6, Windows, and generating an Accessible PDF.
Here's a sample of what works for HTML, but for PDF It doesn't work:
ods pdf startpage=never ;
proc tabulate data=sashelp.class;
class sex age;
keyword n/style={width=1cm};
keyword pctn/style={width=1cm};
tables sex, age*(n pctn)/style={width=7in};
run;
proc tabulate data=sashelp.class ;
class age sex;
keyword n/style={width=1cm};
keyword pctn/style={width=1cm};
tables age, sex*(n pctn)/style={width=7in} ;
run;
ods pdf close;
In HTML it properly fills the width with the row header, but in PDF it looks very messy and the row headers don't attempt to fill the available space. How can I get that to work with PDF? I've tried ROW=FLOAT, CLASSLEV width instead of keyword widths or in addition to, but neither seem to help the messiness in PDF. If I leave off the widths entirely except for the table width, it does produce a table that fills the space (more or less), but the row headers are too small and inconsistent.
Thanks!
... View more