<?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: negative percent8. format in excelXP in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64486#M7518</link>
    <description>Peter,&lt;BR /&gt;
same results   (see your mails)&lt;BR /&gt;
but if you  use the new &lt;BR /&gt;
&lt;BR /&gt;
   format num comma8.2 perc percentn8.2 ;&lt;BR /&gt;
&lt;BR /&gt;
under 9.2.2 or 9.2.3&lt;BR /&gt;
 it is OK&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
    <pubDate>Mon, 16 Aug 2010 14:06:10 GMT</pubDate>
    <dc:creator>Andre</dc:creator>
    <dc:date>2010-08-16T14:06:10Z</dc:date>
    <item>
      <title>negative percent8. format in excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64485#M7517</link>
      <description>Hi&lt;BR /&gt;
has my forum search missed a posting describing how to proc print negative percentages in excelXP?&lt;BR /&gt;
I would like similar appearance in both html and excelxp for negatives, like example (5.25%) &lt;BR /&gt;
Syntax follows to create and use a few negative numbers[pre]ods _all_ close ;&lt;BR /&gt;
ods listing ;&lt;BR /&gt;
data test_neg ;&lt;BR /&gt;
   do num = -10 to 11 by 1.23 ;&lt;BR /&gt;
       perc = num /100 ;&lt;BR /&gt;
       output ;&lt;BR /&gt;
   end ;&lt;BR /&gt;
   format num comma8.2 perc percent8.2 ;&lt;BR /&gt;
run ;&lt;BR /&gt;
filename rep '!temp\test_neg.html' ;&lt;BR /&gt;
filename xlp '!temp\test_neg.xml' ;&lt;BR /&gt;
ods            html file= rep  style= egdefault ;&lt;BR /&gt;
ods tagsets.excelxp file= xlp  style= egdefault ;&lt;BR /&gt;
ods tagsets.excelxp options( sheet_name="test_NEG" Convert_Percentages='Yes'  ) ;&lt;BR /&gt;
ods listing ;&lt;BR /&gt;
proc print data= test_neg ;&lt;BR /&gt;
   id num  / style={tagattr='format:#,##0.00'};&lt;BR /&gt;
  var perc / style={tagattr='format:0.00%;[Red]\(0.00%\);'};&lt;BR /&gt;
run ;&lt;BR /&gt;
ods _all_ close ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Is it something to do with how tagsets.excelXP handles negative values output from the percent. format?   [pre]( 5.67)[/pre]Is it handled better in SAS9.2? &lt;BR /&gt;
Using the option Convert_Percentages='Yes'  seems to make no difference for negative values. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
peterC&lt;BR /&gt;
&lt;BR /&gt;
p.s.&lt;BR /&gt;
versions etc, from SASlog&lt;BR /&gt;
NOTE: This session is executing on the XP_PRO  platform.&lt;BR /&gt;
NOTE: SAS 9.1.3 Service Pack 4&lt;BR /&gt;
NOTE: This is the Excel XP tagset (SAS 9.1.3, v1.86, 04/15/08).</description>
      <pubDate>Mon, 16 Aug 2010 13:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64485#M7517</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-08-16T13:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: negative percent8. format in excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64486#M7518</link>
      <description>Peter,&lt;BR /&gt;
same results   (see your mails)&lt;BR /&gt;
but if you  use the new &lt;BR /&gt;
&lt;BR /&gt;
   format num comma8.2 perc percentn8.2 ;&lt;BR /&gt;
&lt;BR /&gt;
under 9.2.2 or 9.2.3&lt;BR /&gt;
 it is OK&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Mon, 16 Aug 2010 14:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64486#M7518</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2010-08-16T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: negative percent8. format in excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64487#M7519</link>
      <description>thank you Andre&lt;BR /&gt;
 &lt;BR /&gt;
in my SAS913, percentN8. is better than best8.&lt;BR /&gt;
It solves the problem in excel by taking the parentheses out of the HTML - That is why I asked about making these destinations appear the same&lt;I&gt;&lt;BR /&gt;
&amp;gt; I would like similar appearance in both html and excelxp for negative percentages&lt;/I&gt;&lt;BR /&gt;
, but I don't think it is possible in the latest releases of tagset.excelXP.&lt;BR /&gt;
 &lt;BR /&gt;
regards&lt;BR /&gt;
peterC

referring to my release of SAS     Message was edited by: Peter.C</description>
      <pubDate>Mon, 16 Aug 2010 14:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64487#M7519</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-08-16T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: negative percent8. format in excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64488#M7520</link>
      <description>Peter &lt;BR /&gt;
i  answer too quickly&lt;BR /&gt;
i agree even with the last tagsets&lt;BR /&gt;
Compatible with SAS 9.1.3 and above, v1.94, 09/09/12&lt;BR /&gt;
&lt;BR /&gt;
you have under xml  a number for percentn&lt;BR /&gt;
ss:Type="Number"&amp;gt;-0.1&lt;BR /&gt;
in place of a string&lt;BR /&gt;
ss:Type="String"&amp;gt;(10.00%)&lt;BR /&gt;
if you use percent&lt;BR /&gt;
&lt;BR /&gt;
tagattr  is very difficult to guess  and more in locale variation!!!!&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Mon, 16 Aug 2010 14:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64488#M7520</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2010-08-16T14:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: negative percent8. format in excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64489#M7521</link>
      <description>Hi, Peter:&lt;BR /&gt;
  The issue, (and you may want to double check this with Tech Support), is that TAGATTR is not the method by which you send a Microsoft format to an HTML file that you intend to open with Excel. Instead of TAGATTR, you use HTMLSTYLE style attribute. In my experience, this means that you generally don't have 1 code block for both destinations. I also use ODS MSOFFICE2K instead of ODS HTML -- because ODS HTML creates HTML 4 tags (which Microsoft doesn't like as well as its "flavor" of HTML) -- MSOFFICE2K creates Microsoft flavor HTML.&lt;BR /&gt;
 &lt;BR /&gt;
  For an example of using HTMLSTYLE, see this previous forum posting:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=40547鹣" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=40547鹣&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
And this paper has some more examples of using HTMLSTYLE:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/Excel1.pdf" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/Excel1.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 16 Aug 2010 15:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64489#M7521</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-16T15:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: negative percent8. format in excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64490#M7522</link>
      <description>Thank you Cynthia&lt;BR /&gt;
 &lt;BR /&gt;
my client was receiving a daily-changes report in html quite happily, until we improved a different report placing it in excel through tagsets.excelxp. Now (as normal with customers, who are always right) they would like it both ways. &lt;BR /&gt;
I shall use Andre's proposal format percentN. for the closest match between html and excel surfaces. Not perfect, but sufficient (until the next significant release of tagsets.excelxp - once QA have finished).&lt;BR /&gt;
 &lt;BR /&gt;
ok for now&lt;BR /&gt;
peterC</description>
      <pubDate>Mon, 16 Aug 2010 16:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/negative-percent8-format-in-excelXP/m-p/64490#M7522</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-08-16T16:55:07Z</dc:date>
    </item>
  </channel>
</rss>

