BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
Cynthia_sas
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 856 views
  • 0 likes
  • 2 in conversation