The SAS Output Delivery System and reporting techniques

ODS PDF

Reply
N/A
Posts: 0

ODS PDF

I am trying to switch over to PDF output and am having problems getting my ODS PDF output to match my traditional output. I am using PROC TABULATE to make some simple tables and in certain cases I can't get the PDF output to suppress certain header rows.

Here is my code:

proc tabulate
data=scratch.degrees
format=6.0 missing
formchar='B3C4DAC2BFC3C5B4C0C1D9'X;

class ethnalph instcd sx;

table instcd=' '*(sx=' ' all*f=4.0)
all='All Institutions'*(sx=' ' all*f=5.0),
ethnalph*f=11.0 all='All Degrees'*f=8.0
/ rts=48 misstext='0';

keylabel
all = 'Total'
n = ' ';

run;

My traditional output suppresses the headers associated with the sx variable. My PDF output does not suppress the row header associated with the sx variable except for on the first line, after that those header cells are there (however they have nothing in them).

Any help would be greatly appreciated.

Thanks,

Vern
SAS Super FREQ
Posts: 8,869

Re: ODS PDF

Posted in reply to deleted_user
Hi,
Check out this Tech Support note. Generally speaking, you need to specify ROW=FLOAT when you are suppressing headers, as described here:
http://support.sas.com/faq/011/FAQ01127.html

Also, you have to be aware that whether ROW=FLOAT works, depends on the level of SAS that you are running. For example, in SAS 8, ROW=FLOAT did NOT work with ODS destinations (only LISTING), but according to this Tech Support note, http://support.sas.com/techsup/unotes/SN/000/000498.html
you should find that ROW=FLOAT works, starting with SAS 9.1.

So your modified TABLE statement options would be:[pre]
table / row=float rts=48 misstext='0';
[/pre]
cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 125 views
  • 0 likes
  • 2 in conversation