<?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: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303220#M17121</link>
    <description>Rock n roll.  Thanks!</description>
    <pubDate>Fri, 07 Oct 2016 17:02:38 GMT</pubDate>
    <dc:creator>wcp_fnfg</dc:creator>
    <dc:date>2016-10-07T17:02:38Z</dc:date>
    <item>
      <title>Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303015#M17102</link>
      <description>&lt;P&gt;When I change from ODS tagset.excelxp to ODS Excel in the attachment, I lose my formatting like the dollar format and even the border lines for the data. &amp;nbsp;How can I keep the tagset formatting and styling?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 19:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303015#M17102</guid>
      <dc:creator>wcp_fnfg</dc:creator>
      <dc:date>2016-10-06T19:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303023#M17106</link>
      <description>&lt;P&gt;Have you tried removing the TAGATTR options?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303023#M17106</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-06T20:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303027#M17108</link>
      <description>&lt;P&gt;Then I wouldn't have my tagattr options. &amp;nbsp;I'm also losing the template formatting, but the tagattr options are important.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303027#M17108</guid>
      <dc:creator>wcp_fnfg</dc:creator>
      <dc:date>2016-10-06T20:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303036#M17109</link>
      <description>&lt;P&gt;A benefit of ODS Excel vs Tagsets is that:&lt;/P&gt;
&lt;P&gt; using SAS formats with the Excel destination to control cell formatting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this paper here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings16/SAS5642-2016.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings16/SAS5642-2016.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So some of your tagattr may have to change when changing destinations. It's not a one to one conversion between the two...&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303036#M17109</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-06T20:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303157#M17115</link>
      <description>&lt;P&gt;I'm largely concerned that the styles don't end up the same, particularly in this example when using the template. &amp;nbsp;The outputs don't look alike at all.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 13:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303157#M17115</guid>
      <dc:creator>wcp_fnfg</dc:creator>
      <dc:date>2016-10-07T13:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303186#M17116</link>
      <description>&lt;P&gt;Try this. The main difference is that, in the destination for Excel, you have to prefix a custom format definition with the word "format:". I also changed the column widths and made a few other changes but that was the big one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options dlcreatedir;
*libname newdir "/sas/data/Risk_Mgmt/users/pattowe/temp";
libname newdir '.';
/*filename testdir '/sas/data/Risk_Mgmt/users/pattowe/temp';*/
/*data _null_;*/
/*   rc=fdelete('testdir');*/
/*   put rc=;*/
/*   msg=sysmsg();*/
/*   put msg=;*/
/*run;*/


option compress=yes validvarname=upcase nolabel;

%let tag_dol = tagattr='format:$#,##0.0;[Red]($#,##0.0);-';
%let tag_comma = tagattr='format:#,##0.0;[Red](#,##0.0);-';
%let tag_pct = tagattr='format:0.00%;[Red]-0.00%;-';

proc template;
	define style styles.wesweb;
	parent = styles.sasweb;
	style rowheader from rowheader /
		background = #FFFFFF
		color = #000000
		font_weight= bold;
	class container /
		font_size = 10pt;
	end;
run;

*Embedded subtotal, Highlight Subtotals as Blue, Grand Total Row as Orange;
*TagAttr necessary to carry format to excel with ODS Tagsets.ExcelXp;

ods listing close;
ods html close;
title;
options missing = 0;
ods excel
file= "Tabulate_Test.xlsx"
style=wesweb
	options (
sheet_interval="none" 
absolute_column_width = '7,15,9,9,9,9,9,9,11' 
embedded_titles='yes'
embedded_footnotes='yes'
orientation = 'portrait'
center_horizontal = 'yes'
pages_fitwidth = '1'
pages_fitheight = '1'
print_header= "SASHelp Average Car Prices"
print_footer='&amp;amp;RPage &amp;amp;P of &amp;amp;N'
/*autofit_height='yes'*/
row_heights='26'
sheet_name = 'Prices')
;

proc tabulate data = sashelp.cars missing;
class origin make type;
var msrp;
table
(origin=''*{s={&amp;amp;tag_dol.}}
	* (make='' all='Total'*{s={font_weight=bold background=#B8CCE4 &amp;amp;tag_dol.}}) /*Blue Highlight, Bold*/
 all='Grand Total'*{s={font_weight=bold background=#FABF8F &amp;amp;tag_dol.}}) /*Orange Highlight, Bold*/

, (type='' all='Grand Total')
* (msrp=''*mean='' *f=comma22.2 ) /*Comma format for SAS report, does not carry to Excel*/
/box = {label='Mean MSRP' style={vjust=bottom}} row=float;
run;

ods excel close;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Oct 2016 15:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303186#M17116</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-10-07T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303200#M17117</link>
      <description>This definitely handles the dollar formats, I didn't know about that extra syntax.&lt;BR /&gt;&lt;BR /&gt;Any idea why I'm losing my border\cell lines with this style?  It seems like proc template is interacting differently with this.</description>
      <pubDate>Fri, 07 Oct 2016 15:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303200#M17117</guid>
      <dc:creator>wcp_fnfg</dc:creator>
      <dc:date>2016-10-07T15:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303219#M17120</link>
      <description>&lt;P&gt;Change your PROC TEMPLATE code to this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc template;
	define style styles.wesweb;
	parent = styles.sasweb;
	style rowheader from rowheader /
		background = #FFFFFF
		color = #000000
		font_weight= bold;
	class container /
		font_size = 10pt;
	class cell /
                borderstyle = solid
                borderwidth = 0.1pt
                bordercolor = cxCCCCCC;
	end;
run;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Oct 2016 17:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303219#M17120</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-10-07T17:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303220#M17121</link>
      <description>Rock n roll.  Thanks!</description>
      <pubDate>Fri, 07 Oct 2016 17:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303220#M17121</guid>
      <dc:creator>wcp_fnfg</dc:creator>
      <dc:date>2016-10-07T17:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303229#M17122</link>
      <description>&lt;P&gt;How did you know that needed to be added\changed? &amp;nbsp;Is there somewhere in EG that I could've seen what would be impacted or changed?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 17:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303229#M17122</guid>
      <dc:creator>wcp_fnfg</dc:creator>
      <dc:date>2016-10-07T17:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Styles converting ODS Tagset.ExcelXP to ODS Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303240#M17124</link>
      <description>&lt;P&gt;Hmmm...that's hard to say. Your wesweb style&amp;nbsp;has sasweb for its parent, so I &lt;A href="http://support.sas.com/kb/23/442.html" target="_self"&gt;examined&lt;/A&gt;&amp;nbsp;the&amp;nbsp;sasweb style&amp;nbsp;to see how its various classes (table, output, etc.) are defined and what their parent-child relationships are. That gave me some things to try. After that it was just trial-and-error. What I posted was my 4th or 5th attempt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I'm not an EG user. I'm sufficiently old-school that I still use DMS.)&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 17:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Losing-Styles-converting-ODS-Tagset-ExcelXP-to-ODS-Excel/m-p/303240#M17124</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-10-07T17:54:47Z</dc:date>
    </item>
  </channel>
</rss>

