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
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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