data class; set sashelp.class sashelp.class; run; options nodate nonumber orientation=portrait missing=""; ods rtf file="yourpath.rtf" style=Journal; proc report data=class headline headskip nowd; run; ods rtf close;
After the proc report, there is a forced line breaks (maybe "\n").
Is there a way to not output this line break in the proc report? Because This will take up a row of space.
Try to use TAGSETS.RTF + options(vsspace='no') :
data class;
set sashelp.class sashelp.class;
run;
title;
ods tagsets.rtf text= 'xxxx';
options nodate nonumber orientation=portrait missing="";
ods tagsets.rtf file="c:\temp\temp.rtf" style=Journal options(vsspace='no' CONTINUE_TAG='no');
proc report data=class headline headskip nowd;
run;
ods tagsets.rtf close;
Try to use TAGSETS.RTF + options(vsspace='no') :
data class;
set sashelp.class sashelp.class;
run;
title;
ods tagsets.rtf text= 'xxxx';
options nodate nonumber orientation=portrait missing="";
ods tagsets.rtf file="c:\temp\temp.rtf" style=Journal options(vsspace='no' CONTINUE_TAG='no');
proc report data=class headline headskip nowd;
run;
ods tagsets.rtf close;
@Ksharp 👍
I swear it's impossible to know about all the ODS options and capabilities unless you stumble upon them and save a note somewhere.
vsspace
is not described on this page where it should be.
ODS has grown over the years, especially after the tagsets came along. There are now multiple ways to do things, with each method having different abilities and limitations. SAS should clean this up, pick a destination that can do it all and let the other destinations become obsolete, and document that destination properly. The worst most prolific is the relationship with Excel, as @ChrisHemedinger briefly demonstrated.
@Ksharp There's no vsspace
in the help either.
There's this though:
VSPACE: Default value is 'yes'. Current Value: on Usage: OPTIONS(VSPACE='yes') Description: uses the PARSKIP event to place a space table in the document. 'yes' and 'on' have the same action. Assigning 'no' or 'off' uses no PARSKIP table.
which is hardly helpful. It might be the same as vsspace
who knows.
It's a mess. 😞
Mmm the usual message for fixing typos is not there, like
WARNING 1-322: Assuming the symbol RENAME was misspelled as RENAEM.
I need to output this RTF when making TLFs for FDA Submission. So, what is the difference between ods tagsets.rtf and ods rtf? What extra precautions should I take when using the ods tagsets.rtf.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.