<?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 Re: Increase cellpadding *horizontally* in Proc Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239602#M14895</link>
    <description>&lt;P&gt;Hi Ballardw,&lt;BR /&gt;Thanks for replying! I'm currently outputting to ODS RTF, then I have a VBScript that opens the RTF and saves to PDF.&lt;BR /&gt;&lt;BR /&gt;I'd answer "both" to your question. Basically, my problem is that I have wide headers (say 6 characters) but narrow data (say 1 digit). With a cellpadding of 1, the headers are hard to distinguish as the gap between each word is very&amp;nbsp;small.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2015 19:24:19 GMT</pubDate>
    <dc:creator>morglum</dc:creator>
    <dc:date>2015-12-16T19:24:19Z</dc:date>
    <item>
      <title>Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239597#M14892</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to know if there is a way to keep some horizontal padding between my columns, but not between my rows in Proc Report. &amp;nbsp;Currently, I am doing something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=temp &amp;nbsp; ls=120 ps=40 nowd style(report)=[frame=hsides rules=groups cellpadding=1 cellspacing=0 ];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;,but I would like to increase the distance between the columns, without reducing the number of rows on my page. &amp;nbsp;The only option I've found is to manually set the width of the columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239597#M14892</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2015-12-16T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239600#M14894</link>
      <description>&lt;P&gt;Which destination, since not all options work for all destination,&amp;nbsp;and what style are you currently using?&lt;/P&gt;
&lt;P&gt;Do you need additional space before, after or both of displayed values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 19:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239600#M14894</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-12-16T19:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239602#M14895</link>
      <description>&lt;P&gt;Hi Ballardw,&lt;BR /&gt;Thanks for replying! I'm currently outputting to ODS RTF, then I have a VBScript that opens the RTF and saves to PDF.&lt;BR /&gt;&lt;BR /&gt;I'd answer "both" to your question. Basically, my problem is that I have wide headers (say 6 characters) but narrow data (say 1 digit). With a cellpadding of 1, the headers are hard to distinguish as the gap between each word is very&amp;nbsp;small.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 19:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239602#M14895</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2015-12-16T19:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239610#M14896</link>
      <description>Why not straight to ODS PDF?</description>
      <pubDate>Wed, 16 Dec 2015 20:00:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239610#M14896</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-16T20:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239618#M14899</link>
      <description>&lt;P&gt;I dunno really. &amp;nbsp;I was pushed that way here :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Running-commands-in-windows-space-in-directory-and-filename/m-p/238500#M14861" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Running-commands-in-windows-space-in-directory-and-filename/m-p/238500#M14861&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using a few commands that (may?) only work in ODS RTF, such as "pretext='\ql\li360" to indent some columns. Like here :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/027-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/027-2009.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239618#M14899</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2015-12-16T20:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239677#M14904</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; There are other ways to perform indents other than RTF control strings. For example, consider the code below, which works in both RTF and PDF. This is an older example that was posted in the forum in response to an earlier question. I can't take a screen shot now, but this should still work for you. No VB required to make a PDF that has indents.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;ods listing close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;ods pdf file='c:\temp\indent.pdf';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;ods rtf file='c:\temp\indent.rtf';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp; proc report data=sashelp.class nowd;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where sex = 'F';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; column name;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define name / display;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute name;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if name in ( 'Barbara', 'Carol', 'Janet', 'Joyce') then&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; call define(_col_,'style','style={leftmargin=.25in}');&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;&amp;nbsp; run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="courier new,courier" size="2"&gt;ods _all_ close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 23:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239677#M14904</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-12-16T23:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239683#M14907</link>
      <description>Hi Cynthia,&lt;BR /&gt;Thanks for replying!  That is indeed very interesting and useful. I  have to admit the main reason that I'm using RTF to PDF is t hat most white papers I've read in the last two weeks always use ods RTF (including that old one of yours from 2008 I asked about last week).   &lt;BR /&gt;&lt;BR /&gt;VBScript might not be required, but my script already is up and running, so if there is any advantage to sticking to RTF I might as well &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Back to the original question, what would be a good practice to make sure I have enough padding between my columns without manually editing the column widths?&lt;BR /&gt;&lt;BR /&gt;My current solution is to add 1 character wide column, like the  _empty column in this paper.:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings11/246-2011.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings11/246-2011.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data class;&lt;BR /&gt; set sashelp.class(obs=3);&lt;BR /&gt; _empty='';&lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2015 01:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239683#M14907</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2015-12-17T01:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239687#M14908</link>
      <description>If you like the look of the report on page 8 of Allison's paper, then the only way to get it is with the use of a "helper" variable like _empty. If you want to stick with your VB script that's up to you. Just note that many of the papers you are referencing are using the techniques they show because they were written for 9.1.3 (my original 2008 paper) and 9.2 or 9.3 (my later PROC REPORT papers).&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 17 Dec 2015 01:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239687#M14908</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-12-17T01:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239695#M14909</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;style={cellspacing=20}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;could work ?&lt;/P&gt;
&lt;P&gt;also try the following style on your variables.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;style={pretext='   '  posttext='    '}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 02:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239695#M14909</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-12-17T02:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239719#M14911</link>
      <description>Hi Xia,&lt;BR /&gt;Pretext looks good, thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I dont like the cellspacing because it adds white space around cells that have a coloroued background.</description>
      <pubDate>Thu, 17 Dec 2015 08:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239719#M14911</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2015-12-17T08:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239720#M14912</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;
&lt;P&gt;Thanks for the heads up. &amp;nbsp;I'll give direct outputting to PDF a better look.&amp;nbsp;Do you have links to papers that show best practices for Proc Report using &amp;nbsp;ODF PDF handy?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I'm afraid I'm stuck with 9.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 08:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/239720#M14912</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2015-12-17T08:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Increase cellpadding *horizontally* in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/245492#M15137</link>
      <description>&lt;P&gt;Cool, thanks!&lt;/P&gt;
&lt;P&gt;What about changing the borderbottomcolor and justificated in a spanned header cell, like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;("^S={just=c borderbottomcolor=&amp;amp;lightgrey.} Metrics^{super 1}" height weight )&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the code below?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="c:\temp\report.rtf" style=styles.custom;
OPTIONS NODATE NONUMBER;
ods escapechar = '^';

proc sort data= sashelp.class out=temp;; by sex height weight;
  run;&lt;BR /&gt;
data temp;
  set temp;
  by sex;
  if first.sex then sex2= sex;
  else sex2="";
  obs=_n_;
  weight_cat= floor(weight/10)*10;
  _empty=' ';
run;
&lt;BR /&gt;proc report data=temp ls=120 ps=40 nowd 
  split="*"
  style(report)=[]
  style(header)= [just=r]
  style(column)=  [just=r];
&lt;BR /&gt;  column 
    obs
    sex2
    name
    ("^S={just=c borderbottomcolor=&amp;amp;lightgrey.} Metrics^{super 1}" height weight )
    row_color
  ;
&lt;BR /&gt;  define obs /display noprint;
  define sex2/display "Sex" style(header)=[just=l borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=l];
  define name /display "Name" style(header)=[just=l borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=l];
  define height/display "Height" format =5.1 style(header)=[just=r borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=r];
  define weight /display "Weight^{super 2}" format =5.0 style(header)=[just=r borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=r ] format=16.;
  define row_color /computed noprint;

  compute row_color;
    if mod(obs,2)=1 then call define (_row_,"style","style=[background=&amp;amp;verylightgrey.]");
  endcomp;
run;
quit;
ods rtf close;
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 16:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Increase-cellpadding-horizontally-in-Proc-Report/m-p/245492#M15137</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2016-01-22T16:49:52Z</dc:date>
    </item>
  </channel>
</rss>

