The SAS Output Delivery System and reporting techniques

remove the blank line between the titile and talbe

Reply
N/A
Posts: 0

remove the blank line between the titile and talbe

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?
Occasional Contributor
Posts: 14

Re: remove the blank line between the titile and talbe

Posted in reply to deleted_user
up
Occasional Contributor
Posts: 14

Re: remove the blank line between the titile and talbe

Posted in reply to deleted_user
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;
N/A
Posts: 0

Re: remove the blank line between the titile and talbe

Posted in reply to deleted_user
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
N/A
Posts: 0

Re: remove the blank line between the titile and talbe

Posted in reply to deleted_user
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
SAS Super FREQ
Posts: 8,866

Re: remove the blank line between the titile and talbe

Posted in reply to deleted_user
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]
Ask a Question
Discussion stats
  • 5 replies
  • 1439 views
  • 0 likes
  • 3 in conversation