<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Space between columns in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4239#M1744</link>
    <description>Hi there,&lt;BR /&gt;
&lt;BR /&gt;
I have problems again with proc report and the rtf outputs. I'm programming the listing of a SAP and I need use the minimum possible space between cells. I can achieve that setting in my template style cellpadding=0.75 for example. With this, on one hand I get reduce properly the space between rows but on the other hand the information between columns is almost stuck.&lt;BR /&gt;
&lt;BR /&gt;
Does Somebody know if it is possible set the space between columns and rows independtly?&lt;BR /&gt;
&lt;BR /&gt;
I know the order spacing= inside proc report but it doesn't work when I export the table to rtf.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Juan Vicente.</description>
    <pubDate>Mon, 20 Aug 2007 11:58:25 GMT</pubDate>
    <dc:creator>JuanVte</dc:creator>
    <dc:date>2007-08-20T11:58:25Z</dc:date>
    <item>
      <title>Space between columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4239#M1744</link>
      <description>Hi there,&lt;BR /&gt;
&lt;BR /&gt;
I have problems again with proc report and the rtf outputs. I'm programming the listing of a SAP and I need use the minimum possible space between cells. I can achieve that setting in my template style cellpadding=0.75 for example. With this, on one hand I get reduce properly the space between rows but on the other hand the information between columns is almost stuck.&lt;BR /&gt;
&lt;BR /&gt;
Does Somebody know if it is possible set the space between columns and rows independtly?&lt;BR /&gt;
&lt;BR /&gt;
I know the order spacing= inside proc report but it doesn't work when I export the table to rtf.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Juan Vicente.</description>
      <pubDate>Mon, 20 Aug 2007 11:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4239#M1744</guid>
      <dc:creator>JuanVte</dc:creator>
      <dc:date>2007-08-20T11:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Space between columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4240#M1745</link>
      <description>Hi, Juan:&lt;BR /&gt;
  You might find this previous forum posting to be useful. It had an example of how to reduce "very wide" reports.&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=414ƞ" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=414ƞ&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  One suggestion for your particular needs is to see whether there is a "Narrow" version of the font that you are using for the report and switch to that.&lt;BR /&gt;
 &lt;BR /&gt;
  Another style attribute to explore is cellspacing -- depending on what you want to do, cellspacing also affects the amount of space between each cell. Think of cellpadding as being the "white" space around your value in a data cell and cellspacing as being the space around the 4 sides of the data cell itself. Remember to be careful when you specify your value units for cellpadding and cellspacing. For RTF, I believe that your units of measure -- whatever they are -- are translated to TWIPS (twentieths of a printers point) -- because that's what RTF uses. So the number you provide in inches or points or pixels is undergoing some transformation in order to conform with this RTF specification.&lt;BR /&gt;
 &lt;BR /&gt;
Your observation is correct that cellpadding (like cell spacing) affects all 4 edges/areas -- top, bottom, left, and right -- of the cells in a table. &lt;BR /&gt;
&lt;BR /&gt;
If you do not find a font/cellpadding/cellspacing combination that makes your RTF report look the way you want, then the other thing to explore is whether the indent= style attribute or the leftmargin= style attribute might help indent the text in the cell a bit. But I would not fiddle with those until you had first explored the other options (as they could affect cell value alignment -- possibly making centered values look not centered, etc).&lt;BR /&gt;
 &lt;BR /&gt;
More complicated is exploring whether there's an RTF control string that would affect the table spacing. This is a slightly risky approach, as RTF is very fussy about matching { and } and having the \ctrl-str in the right places. If you don't get the RTF syntax right, you can corrupt the RTF file to the point that Word will not open it.&lt;BR /&gt;
 &lt;BR /&gt;
For either of these last 2 approaches, you'd have to turn to Tech Support for help, although there were some forum postings on RTF control strings that you might be able to find by searching the forum.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
** Updated to add this information:&lt;BR /&gt;
Also, there are some "preproduction" features in ODS that you can try. They include style attributes for setting widths and borders on each of the 4 edges of the cell separately, as described here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/topics/odsrtf/rtf901.html" target="_blank"&gt;http://support.sas.com/rnd/base/topics/odsrtf/rtf901.html&lt;/A&gt;&lt;BR /&gt;
and they were specifically designed for RTF -- so they're worth a try.</description>
      <pubDate>Mon, 20 Aug 2007 14:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4240#M1745</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-20T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Space between columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4241#M1746</link>
      <description>Thanks Cynthia! As always I'm very impressed about your knowledge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
I was about get crazy when I figured out that I was using the instructions that you recommended me in a wrong place. I was using it in table style properties instead of the cell style.&lt;BR /&gt;
&lt;BR /&gt;
When I wrote &lt;BR /&gt;
&lt;BR /&gt;
	   replace cell from Output / &lt;BR /&gt;
	           leftmargin=2pt;                     /* see the complete code below*/&lt;BR /&gt;
&lt;BR /&gt;
it worked properly but it had the problem that it adds space to each column, even to the first one and it is not desirable.&lt;BR /&gt;
&lt;BR /&gt;
I find out the style(column) options in proc report and I used it with leftmargin statement. Finally I reduced the code with a macro and now it is similar to use the option spacing= in proc report.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
      define style Styles.aa;&lt;BR /&gt;
      parent = Styles.RTF;&lt;BR /&gt;
	  replace Table from Output /&lt;BR /&gt;
	          frame = hsides&lt;BR /&gt;
			  rules = groups&lt;BR /&gt;
			  just = left&lt;BR /&gt;
			  cellpadding = 0pt&lt;BR /&gt;
			  cellspacing = 0.75pt&lt;BR /&gt;
			  borderwidth = 0.75pt&lt;BR /&gt;
			  ;&lt;BR /&gt;
	  /*&lt;BR /&gt;
	   replace cell from Output / &lt;BR /&gt;
	           leftmargin=2pt;&lt;BR /&gt;
	  */&lt;BR /&gt;
			  &lt;BR /&gt;
      end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
value $sex 'M'='MALE'&lt;BR /&gt;
           'F'='FEMALE';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%macro s(spaces);&lt;BR /&gt;
style(column)=[leftmargin=&amp;amp;spaces.pt]&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
ods rtf file='c:\temp\style.rtf' style=Styles.aa;&lt;BR /&gt;
 &lt;BR /&gt;
 proc report data=sashelp.class nowd headline headskip nocenter missing;&lt;BR /&gt;
  column NAME SEX AGE HEIGHT WEIGHT;&lt;BR /&gt;
  define NAME    / order order=data left;&lt;BR /&gt;
  define SEX     / order order=data %s(2) left f=$sex.;&lt;BR /&gt;
  define AGE     / display left %s(2);&lt;BR /&gt;
  define HEIGHT  / display left %s(2) 'H' ;&lt;BR /&gt;
  define WEIGHT  / display left %s(2) 'W' ;&lt;BR /&gt;
 run;&lt;BR /&gt;
ods rtf close;</description>
      <pubDate>Tue, 21 Aug 2007 09:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4241#M1746</guid>
      <dc:creator>JuanVte</dc:creator>
      <dc:date>2007-08-21T09:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Space between columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4242#M1747</link>
      <description>Juan:&lt;BR /&gt;
  Very good! Glad it works for you now. &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 21 Aug 2007 15:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Space-between-columns/m-p/4242#M1747</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-21T15:17:50Z</dc:date>
    </item>
  </channel>
</rss>

