<?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: Stubborn Text - even with tagattr in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28626#M4425</link>
    <description>One possibility is that this field (_200911) was created with a transpose.&lt;BR /&gt;
&lt;BR /&gt;
However, its attributes are numeric.  It is the only field which is giving me any difficulty.</description>
    <pubDate>Thu, 10 Dec 2009 18:36:31 GMT</pubDate>
    <dc:creator>steve_citi</dc:creator>
    <dc:date>2009-12-10T18:36:31Z</dc:date>
    <item>
      <title>Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28622#M4421</link>
      <description>Regardless of the tagattr used, variable _200911 continues to come up as text in excel.  It's attributes are the same as workbal and cur_bal, which come up numeric.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file="/usr04/spm/banking/tcc/rohan/output/forbearance_test_&amp;amp;stopmon..xls" style=styles.vminstyle&lt;BR /&gt;
                                                                                      options(sheet_name="Payments" frozen_headers="yes");&lt;BR /&gt;
PROC PRINT data=forbear6_trans_rpt LABEL split='*';&lt;BR /&gt;
format workbal cur_bal _200911 dollar11.2;&lt;BR /&gt;
label  work_date="Forbearance*Date";&lt;BR /&gt;
label  addr_1   ="Address 1";&lt;BR /&gt;
label  addr_2   ="Address 2";&lt;BR /&gt;
label  st       ="State";&lt;BR /&gt;
label  obg_no   ="Obligor*Number";&lt;BR /&gt;
label  obl_no   ="Obligation*Number";&lt;BR /&gt;
label  proddesc ="Product*Name";&lt;BR /&gt;
label  workbal  ="Balance*at*Workout";&lt;BR /&gt;
label  cur_bal  ="Current*Balance";&lt;BR /&gt;
id  work_date ;&lt;BR /&gt;
var name      ;&lt;BR /&gt;
var addr_1    ;&lt;BR /&gt;
var addr_2    ;&lt;BR /&gt;
var city      ;&lt;BR /&gt;
var st        ;&lt;BR /&gt;
var zip       ;&lt;BR /&gt;
var obg_no    ;&lt;BR /&gt;
var obl_no    ;&lt;BR /&gt;
var proddesc  ;&lt;BR /&gt;
var workbal   ;&lt;BR /&gt;
var cur_bal   ;&lt;BR /&gt;
var _200911 /style(data)={tagattr="format:Currency"};&lt;BR /&gt;
sum cur_bal workbal;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp close;</description>
      <pubDate>Thu, 10 Dec 2009 16:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28622#M4421</guid>
      <dc:creator>steve_citi</dc:creator>
      <dc:date>2009-12-10T16:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28623#M4422</link>
      <description>Hi:&lt;BR /&gt;
  That's odd. When I try this code, I -do- see dollar signs for both ACTUAL and PREDICT. I have to admit that I like the way Excel treats ACTUAL better than the way it treats PREDICT. But this code works for me; and, ACTUAL and PREDICT are both &lt;B&gt;numeric&lt;/B&gt; columns in Excel.&lt;BR /&gt;
 &lt;BR /&gt;
  If you run this code and do not see dollar signs for both ACTUAL and PREDICT, then you should check that you are running the most current version of the tagset template. I ran this code in SAS 9.2 using ExcelXP version: &lt;BR /&gt;
&lt;B&gt;NOTE: This is the Excel XP tagset (SAS 9.1.3, v1.86, 04/15/08).&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  If you are using this version of the tagset and your code does not produce dollar signs and numeric values in Excel, then your best resource is to open a track with Tech Support on this issue.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.excelxp file="c:\temp\testcurr.xls" style=sasweb&lt;BR /&gt;
    options(sheet_name="Payments" frozen_headers="yes");&lt;BR /&gt;
                                                         &lt;BR /&gt;
PROC PRINT data=sashelp.prdsale(obs=3) LABEL split='*';&lt;BR /&gt;
  format actual predict dollar11.2;&lt;BR /&gt;
  id month ;&lt;BR /&gt;
  var actual /style(data)={tagattr="format:$#,#00.00"};&lt;BR /&gt;
  var predict /style(data)={tagattr="format:Currency"};&lt;BR /&gt;
  sum actual predict;&lt;BR /&gt;
run;&lt;BR /&gt;
                                        &lt;BR /&gt;
ods tagsets.excelxp close; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 10 Dec 2009 17:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28623#M4422</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-10T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28624#M4423</link>
      <description>Cynthia, &lt;BR /&gt;
&lt;BR /&gt;
I am using version 1.86 and dollar signs DO come out, that was never a problem.  However, the field in Excel is text.</description>
      <pubDate>Thu, 10 Dec 2009 18:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28624#M4423</guid>
      <dc:creator>steve_citi</dc:creator>
      <dc:date>2009-12-10T18:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28625#M4424</link>
      <description>That's odd, my fields are numeric when I use either of my TAGATTR values. I am forced to conclude that it's&lt;BR /&gt;
1) something different between your data and SASHELP.PRDSALE and your numeric values ???&lt;BR /&gt;
2) something in your style template&lt;BR /&gt;
3) something in Excel&lt;BR /&gt;
 &lt;BR /&gt;
I seriously doubt it's #1. That leaves #2 or #3, which really require the expertise of Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 10 Dec 2009 18:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28625#M4424</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-10T18:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28626#M4425</link>
      <description>One possibility is that this field (_200911) was created with a transpose.&lt;BR /&gt;
&lt;BR /&gt;
However, its attributes are numeric.  It is the only field which is giving me any difficulty.</description>
      <pubDate>Thu, 10 Dec 2009 18:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28626#M4425</guid>
      <dc:creator>steve_citi</dc:creator>
      <dc:date>2009-12-10T18:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28627#M4426</link>
      <description>Hi:&lt;BR /&gt;
  I doubt it was PROC TRANSPOSE -- if TRANSPOSE created a numeric variable _200911 (which it -must- have if you can successfully use the DOLLAR11.2 format), then I doubt the creation method is a factor. You could run an experiment to explicitly create a numeric copy of _200911:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  data new;&lt;BR /&gt;
     set ...;&lt;BR /&gt;
     length new_v200911 8;&lt;BR /&gt;
     new_v200911 = _200911;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
and then run your EXCELXP code using both new_v200911 and _200911 and see if new_v200911 comes across as numeric or text in Excel. But even if the new variable did come across as numeric I'm not sure what that would mean. &lt;BR /&gt;
&lt;BR /&gt;
As I said, since you're using a dollar format with _200911, it would have to be numeric. Interestingly, when I run the program below, even the character variable _2009xx comes across as numeric in Excel, due to TAGATTR, even though it is CHARACTER in SAS. I guess it just shows that Excel likes and respects Excel formats more than it respects SAS formats.&lt;BR /&gt;
 &lt;BR /&gt;
  It's a puzzle. My recommendation is to work with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
data test;&lt;BR /&gt;
length _2009xx $11;&lt;BR /&gt;
  set sashelp.prdsale;&lt;BR /&gt;
  _200911 = actual;&lt;BR /&gt;
  _2009xx = put(actual, dollar11.2);&lt;BR /&gt;
run;&lt;BR /&gt;
                                      &lt;BR /&gt;
ods tagsets.excelxp file="c:\temp\testcurr2.xls" style=sasweb&lt;BR /&gt;
    options(sheet_name="Payments" frozen_headers="yes");&lt;BR /&gt;
                                           &lt;BR /&gt;
PROC PRINT data=test(obs=3) LABEL split='*';&lt;BR /&gt;
  format actual predict _200911 dollar11.2;&lt;BR /&gt;
  id month ;&lt;BR /&gt;
  var actual /style(data)={tagattr="format:$#,#00.00"};&lt;BR /&gt;
  var predict /style(data)={tagattr="format:Currency"};&lt;BR /&gt;
  var _200911 /style(data)={tagattr="format:Currency"};&lt;BR /&gt;
  var _2009xx / style(data)={tagattr="format:Currency"};&lt;BR /&gt;
  sum actual predict _200911 ;&lt;BR /&gt;
run;&lt;BR /&gt;
                                                  &lt;BR /&gt;
ods tagsets.excelxp close; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 10 Dec 2009 19:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28627#M4426</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-10T19:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28628#M4427</link>
      <description>Cynthia, &lt;BR /&gt;
&lt;BR /&gt;
Creating a new variable with a length of 8 seemed to work.</description>
      <pubDate>Thu, 10 Dec 2009 20:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28628#M4427</guid>
      <dc:creator>steve_citi</dc:creator>
      <dc:date>2009-12-10T20:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stubborn Text - even with tagattr</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28629#M4428</link>
      <description>Hi:&lt;BR /&gt;
  I'm glad. Puzzled, but glad it worked. (the only thing that the code would have done was take any stray or odd missing values in the variable _200911 and explicitly set them to SAS missing or . in NEW_V200911 variable.);&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 10 Dec 2009 20:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Stubborn-Text-even-with-tagattr/m-p/28629#M4428</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-10T20:29:51Z</dc:date>
    </item>
  </channel>
</rss>

