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