<?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 alignment problem with proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/alignment-problem-with-proc-report/m-p/41530#M5645</link>
    <description>Indicatuib   statistic    Value&lt;BR /&gt;
xxxxx	N(%)	42    (60.87)&lt;BR /&gt;
yyyyy	N(%)	8    (11.59)&lt;BR /&gt;
zzzzz	N(%)	              0&lt;BR /&gt;
wwww	N(%)	19    (27.54)&lt;BR /&gt;
I have used proc report (ODS RTF) to display above output and  used right alignment to display the value column which is concatenated value of count and percent.&lt;BR /&gt;
but 0 is not aligned properly. I dont want to display percent for zero count. In such a case zero  should be displayed just below the count but not below the percent.&lt;BR /&gt;
help me to solve this problem</description>
    <pubDate>Mon, 25 Aug 2008 09:45:17 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-08-25T09:45:17Z</dc:date>
    <item>
      <title>alignment problem with proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/alignment-problem-with-proc-report/m-p/41530#M5645</link>
      <description>Indicatuib   statistic    Value&lt;BR /&gt;
xxxxx	N(%)	42    (60.87)&lt;BR /&gt;
yyyyy	N(%)	8    (11.59)&lt;BR /&gt;
zzzzz	N(%)	              0&lt;BR /&gt;
wwww	N(%)	19    (27.54)&lt;BR /&gt;
I have used proc report (ODS RTF) to display above output and  used right alignment to display the value column which is concatenated value of count and percent.&lt;BR /&gt;
but 0 is not aligned properly. I dont want to display percent for zero count. In such a case zero  should be displayed just below the count but not below the percent.&lt;BR /&gt;
help me to solve this problem</description>
      <pubDate>Mon, 25 Aug 2008 09:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/alignment-problem-with-proc-report/m-p/41530#M5645</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-25T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: alignment problem with proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/alignment-problem-with-proc-report/m-p/41531#M5646</link>
      <description>Hi:&lt;BR /&gt;
  As far as PROC REPORT is concerned, the 0 is aligned properly -- if 0 is the only value in the cell, and you specify just=r, then the 0 should be right-aligned -- and it sounds like that is what you're seeing -- so you know that justification is working -- just not the way you want. &lt;BR /&gt;
&lt;BR /&gt;
  What you may want to do is "pad" the 0 value with non-breaking spaces so it shifts position from the right border of the cell. Or you may want to find out whether there are any RTF control strings that would let you control alignment. I have an example of the ESCAPECHAR method of padding.&lt;BR /&gt;
 &lt;BR /&gt;
In ODS, a non-breaking space can be inserted into your output by specifying the ODS ESCAPECHAR + underscore. This means if you have this statement in your code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
that &lt;B&gt;^_&lt;/B&gt; will be treated as a non-breaking space by ODS and sent as such to the destination.&lt;BR /&gt;
&lt;BR /&gt;
So, assuming you have this data:&lt;BR /&gt;
[pre]&lt;BR /&gt;
xxxxx N(%) 42 (60.87)&lt;BR /&gt;
yyyyy N(%) 8 (11.59)&lt;BR /&gt;
zzzzz N(%) 0&lt;BR /&gt;
wwww N(%) 19 (27.54)&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                        &lt;BR /&gt;
in a file called "work.testrept" (in my test, I made the length of Value $30 to hold the ESCAPECHAR string), then this code (below) would "pad" the 0. Note that with different style templates being used, you may or may not need to adjust the number of non-breaking spaces that you have.&lt;BR /&gt;
             &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods rtf file='c:\temp\padright.rtf' style=journal;&lt;BR /&gt;
                 &lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
                  &lt;BR /&gt;
proc report data=testrept nowd;&lt;BR /&gt;
  column Indicatuib statistic Value;&lt;BR /&gt;
  define Indicatuib / order order=data;&lt;BR /&gt;
  define statistic / display;&lt;BR /&gt;
  define Value / display&lt;BR /&gt;
         style(column)={just=r asis=on};&lt;BR /&gt;
  compute Value;&lt;BR /&gt;
    if Value = '0' then do;&lt;BR /&gt;
       Value = catt(Value,'^_^_^_^_^_^_^_^_^_^_^_^_');&lt;BR /&gt;
    end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 25 Aug 2008 16:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/alignment-problem-with-proc-report/m-p/41531#M5646</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-08-25T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: alignment problem with proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/alignment-problem-with-proc-report/m-p/41532#M5647</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Thank you! Its working fine.</description>
      <pubDate>Thu, 28 Aug 2008 10:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/alignment-problem-with-proc-report/m-p/41532#M5647</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-28T10:14:07Z</dc:date>
    </item>
  </channel>
</rss>

