<?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: msoffice2k percentage format in call define of proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/msoffice2k-percentage-format-in-call-define-of-proc-report/m-p/82695#M9009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a little mor and was surprised what works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute myfield;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style','style={htmlstyle="mso-number-format:0.00%"}');&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;just changing the brackets to "style={htmlstyle='mso-number-format:0.00%'}" didn't work, but having single quotation marks around the style and double quotation marks around the mso-number-format worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 12:49:26 GMT</pubDate>
    <dc:creator>Eva</dc:creator>
    <dc:date>2012-06-14T12:49:26Z</dc:date>
    <item>
      <title>msoffice2k percentage format in call define of proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/msoffice2k-percentage-format-in-call-define-of-proc-report/m-p/82694#M9008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a proc report which I output to ods tagset.msoffice2k. I use SAS 9.2 and Office XP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the proc report I'd like to format a number with the format percent10.2. Here is the code for the html output which works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute myfield;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'FORMAT',"percent10.2");&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me how to do this for the tagset msoffice2k ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a define statement this works with msoffice2k:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define myfield2 / style={htmlstyle='mso-number-format:0.00%'};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this does not work with the call define:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute myfield;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style',"style=[htmlstyle='mso-number-format:0.00%']");&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;nor anything similar like:&lt;/P&gt;&lt;P&gt;call define(_col_,'style',"htmlstyle=['mso-number-format:0.00%']");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/msoffice2k-percentage-format-in-call-define-of-proc-report/m-p/82694#M9008</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-06-14T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: msoffice2k percentage format in call define of proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/msoffice2k-percentage-format-in-call-define-of-proc-report/m-p/82695#M9009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a little mor and was surprised what works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute myfield;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_col_,'style','style={htmlstyle="mso-number-format:0.00%"}');&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;just changing the brackets to "style={htmlstyle='mso-number-format:0.00%'}" didn't work, but having single quotation marks around the style and double quotation marks around the mso-number-format worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/msoffice2k-percentage-format-in-call-define-of-proc-report/m-p/82695#M9009</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-06-14T12:49:26Z</dc:date>
    </item>
  </channel>
</rss>

