New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hjjijkkl
Pyrite | Level 9

How do you remove space between a footnote and a table from Proc Freq, Proc Print, and Proc Report output. I have tables created using this 3 Procs and there is like 2 space between the footnotes and the tables. 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

With ODS RTF output you might try the alternate ODS TAGSETS.RTF. There are additional options and VSPACE controls additional spaces before/after tables.

 

Brief example:

ods tagsets.rtf file='myrtf.rtf' OPTIONS(VSPACE='NO');

If it turns out that you do not need this everywhere in the document it might be possible to set for portions of a document by something like

ods tagsets.rtf file='myrtf.rtf' ;

<something that creates output>

ods tagsets.rtf OPTIONS(VSPACE='NO');
<more output procedure>

ods tagsets.rtf options(vspace='YES');

<more output>
ods tagsets.rtf close;

Most of the RTF options are available in Tagsets.rtf but may need to be set a bit differently.

View solution in original post

5 REPLIES 5
jimbarbour
Meteorite | Level 14

Typically, in order to change a standard behavior like that, one would have to edit the template for the procedure using Proc Template.

 

Here's a paper on the first of the procedures you mentioned, Proc Freq. 

https://support.sas.com/resources/papers/freq92.pdf

If you get it working for one procedure, you should be able to get it working for the other two fairly easily.  

 

I won't claim to be an expert on Proc Template, but I have done a few things to Proc Freq like adding commas to long numbers (999,999,999) for ease of reading.  If you get stuck, post a question, and I'll do what I can.

 

Good luck,  👍

 

Jim

ballardw
Super User

What destination are you sending the output to?

Which ODS Style are you currently using?

 

I've played with this a long time ago and it has something do to with the PARSKIP property for the style in use. But changing that will also affect other places using Parskip, titles, space between tables/ different procedures can be affected.

hjjijkkl
Pyrite | Level 9
I am using "ods rtf” with he file extension .doc
ballardw
Super User

With ODS RTF output you might try the alternate ODS TAGSETS.RTF. There are additional options and VSPACE controls additional spaces before/after tables.

 

Brief example:

ods tagsets.rtf file='myrtf.rtf' OPTIONS(VSPACE='NO');

If it turns out that you do not need this everywhere in the document it might be possible to set for portions of a document by something like

ods tagsets.rtf file='myrtf.rtf' ;

<something that creates output>

ods tagsets.rtf OPTIONS(VSPACE='NO');
<more output procedure>

ods tagsets.rtf options(vspace='YES');

<more output>
ods tagsets.rtf close;

Most of the RTF options are available in Tagsets.rtf but may need to be set a bit differently.

hjjijkkl
Pyrite | Level 9
I have an an output folder that I have created in my document.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 2933 views
  • 2 likes
  • 3 in conversation