<?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 PROC PRINT SUM values are centred in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-PRINT-SUM-values-are-centred/m-p/484772#M21404</link>
    <description>&lt;P&gt;When I run this code (SAS 9.4M5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data a;
kkkkkkkkk='A';
xxxxxxxxx=1;
yyyyyyyyy=2;
output;
kkkkkkkkk='B';
xxxxxxxxx=11;
yyyyyyyyy=22;
output;  
run;

ods html close; 
ods html file="&amp;lt;path&amp;gt;\Report.html" style=meadow;

proc print data=a noobs;
var kkkkkkkkk xxxxxxxxx yyyyyyyyy;
sum xxxxxxxxx yyyyyyyyy;
run;

ods html close;&lt;/PRE&gt;&lt;P&gt;The output in the SAS Results window is as expected, but in Report.docx (attached, contains the output Report.html but cannot attach .html file here &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;) you will see the SUM figures are centred. This doesn't happen if I use style=default. I can't find any way of getting the SUM values right-justified. Can anyone please advise?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;-Howard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2018 14:55:29 GMT</pubDate>
    <dc:creator>lethcons</dc:creator>
    <dc:date>2018-08-07T14:55:29Z</dc:date>
    <item>
      <title>PROC PRINT SUM values are centred</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-PRINT-SUM-values-are-centred/m-p/484772#M21404</link>
      <description>&lt;P&gt;When I run this code (SAS 9.4M5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data a;
kkkkkkkkk='A';
xxxxxxxxx=1;
yyyyyyyyy=2;
output;
kkkkkkkkk='B';
xxxxxxxxx=11;
yyyyyyyyy=22;
output;  
run;

ods html close; 
ods html file="&amp;lt;path&amp;gt;\Report.html" style=meadow;

proc print data=a noobs;
var kkkkkkkkk xxxxxxxxx yyyyyyyyy;
sum xxxxxxxxx yyyyyyyyy;
run;

ods html close;&lt;/PRE&gt;&lt;P&gt;The output in the SAS Results window is as expected, but in Report.docx (attached, contains the output Report.html but cannot attach .html file here &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;) you will see the SUM figures are centred. This doesn't happen if I use style=default. I can't find any way of getting the SUM values right-justified. Can anyone please advise?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;-Howard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 14:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-PRINT-SUM-values-are-centred/m-p/484772#M21404</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2018-08-07T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT SUM values are centred</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-PRINT-SUM-values-are-centred/m-p/484790#M21405</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You need to add a STYLE override to your PROC PRINT statement:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc print data=a noobs&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; style(grandtotal)={just=r};&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;var kkkkkkkkk xxxxxxxxx yyyyyyyyy;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;sum xxxxxxxxx yyyyyyyyy;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you'll right justify the grand total from the SUM statement. Here's a paper that discusses style overrides with PRINT, REPORT and TABULATE: &lt;A href="http://support.sas.com/resources/papers/proceedings13/366-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/366-2013.pdf&lt;/A&gt; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-PRINT-SUM-values-are-centred/m-p/484790#M21405</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-07T15:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT SUM values are centred</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-PRINT-SUM-values-are-centred/m-p/484796#M21406</link>
      <description>&lt;P&gt;Perfect Cynhia, thanks! I had tried playing with that but I must have had it in the wrong place.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-PRINT-SUM-values-are-centred/m-p/484796#M21406</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2018-08-07T15:33:28Z</dc:date>
    </item>
  </channel>
</rss>

