BookmarkSubscribeRSS Feed
srisoham
Calcite | Level 5

Hi,

  I am trying to combine multiple reports on single page. Clients want all on single page on RTF. I am using ODS RTF. Can someone provide any help to remove or reduce gaps between when multiple reports are produced using ODS STARTPAGE = NO.  Here is my code and output (attached in PDF format).

ods  rtf style = journal text = "~S={font=('ARIAL',8pt,bold) just=c } First Report1 ";

proc print data = sashelp.class(obs = 5) noobs l;

run;

ods  rtf startpage = no text = "~S={font=('ARIAL',8pt,bold) just=c } Second Report";

proc print data = sashelp.class(obs = 5) noobs l;

run;

ods _all_ close;



Thanks,

Sri

2 REPLIES 2
ballardw
Super User

There's not much space in the PDF version. I assume from my experience that you are talking about there being two blank lines between every table and following table or title. When I asked about this about two years ago the answer was basically not much that can be done as those lines are added by some fundamental class that we can't adjust.

The best I came up with was to make the lines the smallest font size I could get Word to accept.

Cynthia_sas
SAS Super FREQ

Hi:

  In SAS "original" ODS RTF, there is no easy way from the SAS end, to change the space between tables. However, starting in SAS 9.2, with ODS TAGSETS.RTF (the new "measured" RTF destination), there is a style element that "touches" the space between tables. Look at this previous forum posting (https://communities.sas.com/thread/30806?start=0) and read about PARSKIP in the link in that post.

cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2 replies
  • 5005 views
  • 0 likes
  • 3 in conversation