Controlling Column Widths with PROC TABULATE

As we saw with PROC REPORT, PROC TABULATE sizes the columns in the table as needed for the destination. In destinations that support the ORIENTATION= option, like RTF and PDF, you can put wide tables onto the page and the column widths are adjusted automatically. The RTS= option in the TABLES statement, which sets the width of the row title, is valid only in the LISTING destination. So, what do you do if you want to explicitly set the column widths of your PROC TABULATE output? As with PROC REPORT, you can use the CELLWIDTH= or WIDTH= style attributes. In PROC TABULATE, you can add these attributes to your CLASS, VAR, and TABLES statements.

The code below demonstrates how ODS defines the default column ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.