BookmarkSubscribeRSS Feed
deleted_user
Not applicable
By default, there is always a blank line between the title and table of RTF output (so are other ODS destinations), but it is not necessary in my report. So, how can I remove the blank line vis proc template or other ways?
5 REPLIES 5
Cyril_FR
Calcite | Level 5
In order to not have a blank line,
instead of using the option bodytitle with title="Table i - Results...",
use the ods rtf text="^S={font_size=11pt font_face='Times New Roman' FONT_SIZE = 11pt FONT_WEIGHT = bold FONT_STYLE = italic}
Table i - Results..." columns=1;
deleted_user
Not applicable
This works really well for titles that are on the first page of a table created by proc report.

I want to repeat the title on each page with no gap between title and table for tables that have multiple pages generated by a proc report. how would I do this? ( we are currently on SAS 9.1.3) Message was edited by: BrianH
deleted_user
Not applicable
Hi Cynthia,

Is it possible to remove the blank line between titles and the output of proc report on all pages? Title statement used to output title, proc report to generate a table and output using ODS RTF
Cynthia_sas
SAS Super FREQ
Hi:
IF you are running SAS 9.2 and IF you switch from "older" ODS RTF to the new ODS TAGSETS.RTF, then there is a style element called "PARSKIP" that works to either expand or reduce the amount of space before/after tables. The smallest value you can specify for PARSKIP style element is 1pt.

PARSKIP is explained here.
http://support.sas.com/rnd/base/new92/92measuredrtf.html

When I tried this code in SAS 9.2 (modified from the above site), I had the SAS title sitting right on top of the table. Even though the example uses PROC PRINT, the style template used would work the same for any procedure.

cynthia
[pre]
proc template;
define style test2;
parent=styles.rtf;
style parskip / fontsize = 1pt;
end;
run;

ods tagsets.rtf file="c:\temp\mparskip.rtf"
OPTIONS(SECT="NONE") STARTPAGE=yes style=test2;

title "Test Title";
footnote "Test Footnote";

proc print data=sashelp.class ; run;
proc print data=sashelp.class ; run;
proc print data=sashelp.class ; run;
ods _all_ close;
ods listing;

[/pre]

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