<?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 ODS Markup to Excel (format text) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256814#M15394</link>
    <description>&lt;P&gt;I have the following code. &amp;nbsp;I am trying to format ot_hrs to one decimal point. &amp;nbsp;You will notice mso-number-format:'0\.0' in the code. &amp;nbsp;When I do this it only formats the section that is highlighted in blue (paleturqoise) and the grand total number to one decimal. &amp;nbsp;I can't get it to format all OT hours. &amp;nbsp;Any help with this is appreciated!!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=work.QUERY_FOR_PAY_TIMEBOOK_MSTR_0003 nowd
style(summary)=[/*color=cx3e3d73*/ backgroundcolor=pink
                /*fontfamily=helvetica fontsize=3*/ textalign=r];

column desc pos last_nm first_nm ot_hrs ccpos;

define desc / order ;

define pos / order;

define last_nm / order ;

define first_nm / order;

define ot_hrs / analysis sum 'OT' style(column)={htmlstyle="mso-number-format:'0\.0'"}  
;

define ccpos /order ;

compute ccpos  ;

IF ccpos  in('331025') THEN CALL DEFINE(_ROW_, "style","STYLE=[BACKGROUND=Paleturquoise]") ;
endcomp;
define ccpos /noprint;

/*cxF7EDFD     pretty pink*/

break after desc /  SUMMARIZE STYLE=[HTMLSTYLE="border-bottom:5px double red;border-left:none;borderright:
none;BORDER-TOP:5px double red"];


rbreak after / summarize skip ;
compute after;
      desc='Grand Total:';
   endcomp;

run;


ODS MARKUP CLOSE;

*  Begin EG generated code (do not edit this line);
;*';*";*/;quit;

*  End EG generated code (do not edit this line);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Mar 2016 12:54:11 GMT</pubDate>
    <dc:creator>LAtwood</dc:creator>
    <dc:date>2016-03-16T12:54:11Z</dc:date>
    <item>
      <title>ODS Markup to Excel (format text)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256814#M15394</link>
      <description>&lt;P&gt;I have the following code. &amp;nbsp;I am trying to format ot_hrs to one decimal point. &amp;nbsp;You will notice mso-number-format:'0\.0' in the code. &amp;nbsp;When I do this it only formats the section that is highlighted in blue (paleturqoise) and the grand total number to one decimal. &amp;nbsp;I can't get it to format all OT hours. &amp;nbsp;Any help with this is appreciated!!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=work.QUERY_FOR_PAY_TIMEBOOK_MSTR_0003 nowd
style(summary)=[/*color=cx3e3d73*/ backgroundcolor=pink
                /*fontfamily=helvetica fontsize=3*/ textalign=r];

column desc pos last_nm first_nm ot_hrs ccpos;

define desc / order ;

define pos / order;

define last_nm / order ;

define first_nm / order;

define ot_hrs / analysis sum 'OT' style(column)={htmlstyle="mso-number-format:'0\.0'"}  
;

define ccpos /order ;

compute ccpos  ;

IF ccpos  in('331025') THEN CALL DEFINE(_ROW_, "style","STYLE=[BACKGROUND=Paleturquoise]") ;
endcomp;
define ccpos /noprint;

/*cxF7EDFD     pretty pink*/

break after desc /  SUMMARIZE STYLE=[HTMLSTYLE="border-bottom:5px double red;border-left:none;borderright:
none;BORDER-TOP:5px double red"];


rbreak after / summarize skip ;
compute after;
      desc='Grand Total:';
   endcomp;

run;


ODS MARKUP CLOSE;

*  Begin EG generated code (do not edit this line);
;*';*";*/;quit;

*  End EG generated code (do not edit this line);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256814#M15394</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2016-03-16T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Markup to Excel (format text)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256837#M15395</link>
      <description>&lt;P&gt;Are you using ODS TAGSETS.EXCELXP or ODS EXCEL?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or another variant?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 16:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256837#M15395</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-15T16:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Markup to Excel (format text)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256841#M15396</link>
      <description>ODS Markup&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Mar 2016 16:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256841#M15396</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2016-03-15T16:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Markup to Excel (format text)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256923#M15399</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;ODS MARKUP could be HTML-based (in which case your HTMLSTYLE specification might be needed) or it could be XML-based (in which case you might need to use TAGATTR). In the future, showing ALL your code, including the ODS statements would be useful. Please consider these 2 statement examples that worked for me:&lt;/P&gt;
&lt;P&gt;For HTML-based "markup" destinations, you need to use HTMLSTYLE:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define ot_hrs / analysis sum 'OT' &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={htmlstyle="mso-number-format:#0\.0​"}; &amp;nbsp; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For XML-based "markup" destinations, you need to use TAGATTR:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; define ot_hrs / analysis sum 'OT' &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={tagattr="format:#0.0​"}; &amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With either form of usage, notice the correct quoting. You have an extra set of quotes in your specification, which is incorrect, but also, without seeing your ODS statements, it is hard to determine whether you need HTMLSTYLE or TAGATTR. The code shown in the screen shot worked correctly for me in all 3 outputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="compare_change_format.png" alt="compare_change_format.png" src="https://communities.sas.com/t5/image/serverpage/image-id/2317i58C6E3ECB15C1CFF/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 22:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/256923#M15399</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-15T22:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Markup to Excel (format text)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/257039#M15404</link>
      <description>&lt;P&gt;Thank you Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 14:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Markup-to-Excel-format-text/m-p/257039#M15404</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2016-03-16T14:57:13Z</dc:date>
    </item>
  </channel>
</rss>

