BookmarkSubscribeRSS Feed
Leejean
Calcite | Level 5

I run into a problem when create report with ods rtf with SAS 9.1.3. I used proc tabulate with by statement to generate mulitple tables in one rtf file. when a table within the by variable shorter or longer than the page length, it works fine; but when a table just fit in one page, the page break line goes to next page and create an extral blank page. Here is the code I used. Is there any way to fix? I tried Startpage=, noKeepN. They didn't work. Thanks!

ods rtf file='' nokeepn bodytitle;

options nobyline;

proc tabulate;

     by id;

     class var1;

     var var2;

     tables;

run;

ods rtf close;

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  I believe that is Microsoft Word doing you a favor. These Tech Support notes outline or are relevant to the issue.

http://support.sas.com/kb/16/976.html

http://support.sas.com/kb/24/033.html

http://support.sas.com/kb/17/498.html

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1698 views
  • 0 likes
  • 2 in conversation