The SAS Output Delivery System and reporting techniques

STYLE= overrides in PROC TABULATE

Reply
N/A
Posts: 0

STYLE= overrides in PROC TABULATE

Hi,

We are using a style override in proc tabulate like this voor HTML output:

PROC TABULATE DATA=resultaat STYLE={font_size=1};

This works fine, font_size is reduced compared to if we don't use the style override.

But we also want to make the actual tables smaller. I thought using CELLPADDING would do the trick, but it seems to have no effect whatsoever. This is what we do:

PROC TABULATE DATA=resultaat STYLE={font_size=1 cellpadding=2pt};

What can I do to make the cells in the table smaller to get a smaller table?

Cheers,

Gahan
SAS Super FREQ
Posts: 8,866

Re: STYLE= overrides in PROC TABULATE

Posted in reply to deleted_user
Hi!
You could try making cellpadding in pixels instead of points: STYLE={cellpadding=1px};

But, you should also use cellpadding on the TABLE statement, because it is an attribute that applies to the table "structure", so like changes to RULES and FRAMES, it goes on the TABLE statement:

table var1,
var2*numvar/
STYLE={cellpadding=1px};

The font_size of one will work on the PROC TABULATE statement, but cellpadding needs to be on the TABLE statement.

cynthia
N/A
Posts: 0

Re: STYLE= overrides in PROC TABULATE

Posted in reply to Cynthia_sas
Hi Cynthia,

Works like a charm. Thank you very much!

Cheers,

Gahan
Ask a Question
Discussion stats
  • 2 replies
  • 132 views
  • 0 likes
  • 2 in conversation