<?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: PROC REPORT AND ODS EXCELXP STYLE OPTIONS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248752#M15222</link>
    <description>&lt;P&gt;See if this helps:&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp
file  = "D:\data\shoes_test.xml"
   style = styles.mystyle
   options (orientation    ='landscape'
            autofit_height ='yes'
            );
   ods escapechar='~';

PROC REPORT DATA=SASHELP.SHOES(obs=5)  SPLIT="/" nowd ;
   COLUMN  ("EAST COAST" "~{style foreground [color=red fontweight=bold]Eastern States~{super 1}}" Region Product Subsidiary)
           ("WEST COAST" "~{style foreground [color=red fontweight=bold]Western Stores~{super 2}}" Sales Inventory Returns );
   DEFINE  Region     / DISPLAY  "~{style foreground [color=red fontweight=bold]Region~{super 3}}" ;
   DEFINE  Product    / DISPLAY  "Product" ;
   DEFINE  Subsidiary / DISPLAY  "Subsidiary" ;
   DEFINE  Sales      / SUM      "Total Sales" ;
   DEFINE  Inventory  / SUM      "Total Inventory" ;
   DEFINE  Returns    / SUM      "Total Returns"  style(header)={background=light grey};
RUN;
ods tagsets.excelxp close;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Feb 2016 21:56:25 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-02-08T21:56:25Z</dc:date>
    <item>
      <title>PROC REPORT AND ODS EXCELXP STYLE OPTIONS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248519#M15219</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I have a question about controlling style options with PROC REPORT and ODS EXCELXP tagsets.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I am using SAS 9.4 (M2) and I output my PROC REPORT results to EXCEL using EXCELXP tagsets.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Here is my output and I am having following issues:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;IMG title="my_current_output.png" alt="my_current_output.png" src="https://communities.sas.com/t5/image/serverpage/image-id/1783i11C6049F98969C34/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;REGION is a variable in the dataset sashelp.shoes. When I use INLINE formatting in this variable (superscript with 3), it does NOT show up as BOLD and RED in color. You can see all other variables are in red color with bold weight. I need this in BOLD and RED.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;EAST COAST and WEST COAST are NOT the variables in the dataset. These are created in COLUMN statement. The color is red and it is BOLD which is exactly what I want. But I need to control the background and want yellow and green background.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Eastern States(superscript 1)&lt;/STRONG&gt; and (&lt;STRONG&gt;Western States superscript 2)&lt;/STRONG&gt; are also NOT the variables in the dataset. They are also created in the COLUMN statement. Here both have INLINE FORMATTING with superscript 1 and 2 respectively. Here I lose the red color as well as bold but I need those. I also need a background of different colors (say blue and black).&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;STRONG&gt;This is the output I would like to have:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;IMG title="my_desired_output.png" alt="my_desired_output.png" src="https://communities.sas.com/t5/image/serverpage/image-id/1784iD658258B121A01C2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;Thank you for the help.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;THE CODE IS IN THE ATTACHMENT (code.txt).&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 20:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248519#M15219</guid>
      <dc:creator>P_S_</dc:creator>
      <dc:date>2016-02-08T20:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT AND ODS EXCELXP STYLE OPTIONS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248690#M15220</link>
      <description>&lt;P&gt;I think you want to repost your code and possibly in the insert code window (look at the {i} or SAS run icon in the menu of the display. It looks like some of your code may be getting eaten by HTML interpretter (at least in my view) as there are man missing closing brace and parentheses.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 16:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248690#M15220</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-02-08T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT AND ODS EXCELXP STYLE OPTIONS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248726#M15221</link>
      <description>&lt;P&gt;Thank you Ballardw for pointing this out.&lt;/P&gt;
&lt;P&gt;I have now posted the code as an attachement. Hopefully that will work and people will be able to see the code.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 20:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248726#M15221</guid>
      <dc:creator>P_S_</dc:creator>
      <dc:date>2016-02-08T20:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT AND ODS EXCELXP STYLE OPTIONS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248752#M15222</link>
      <description>&lt;P&gt;See if this helps:&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp
file  = "D:\data\shoes_test.xml"
   style = styles.mystyle
   options (orientation    ='landscape'
            autofit_height ='yes'
            );
   ods escapechar='~';

PROC REPORT DATA=SASHELP.SHOES(obs=5)  SPLIT="/" nowd ;
   COLUMN  ("EAST COAST" "~{style foreground [color=red fontweight=bold]Eastern States~{super 1}}" Region Product Subsidiary)
           ("WEST COAST" "~{style foreground [color=red fontweight=bold]Western Stores~{super 2}}" Sales Inventory Returns );
   DEFINE  Region     / DISPLAY  "~{style foreground [color=red fontweight=bold]Region~{super 3}}" ;
   DEFINE  Product    / DISPLAY  "Product" ;
   DEFINE  Subsidiary / DISPLAY  "Subsidiary" ;
   DEFINE  Sales      / SUM      "Total Sales" ;
   DEFINE  Inventory  / SUM      "Total Inventory" ;
   DEFINE  Returns    / SUM      "Total Returns"  style(header)={background=light grey};
RUN;
ods tagsets.excelxp close;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Feb 2016 21:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248752#M15222</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-02-08T21:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT AND ODS EXCELXP STYLE OPTIONS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248805#M15223</link>
      <description>&lt;P&gt;This works. Thank you ballardw.&lt;/P&gt;
&lt;P&gt;I also want to add the background color to the "Eastern States" - let's say a blue color. I am having difficultly with the syntax to add the background. Is there a way to&amp;nbsp;add background color?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/248805#M15223</guid>
      <dc:creator>P_S_</dc:creator>
      <dc:date>2016-02-09T18:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT AND ODS EXCELXP STYLE OPTIONS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/249438#M15230</link>
      <description>&lt;P&gt;Similar, just use style background [color=blue]&lt;/P&gt;
&lt;P&gt;If combining you only need one STYLE but you have multiple options&lt;/P&gt;
&lt;P&gt;Style background [color=blue] foreground [color=red]"text"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look in the reference for style options you have things like font size, weight (bold and such) borders (where appropriate) justification (left right center)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 13:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-AND-ODS-EXCELXP-STYLE-OPTIONS/m-p/249438#M15230</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-02-11T13:31:07Z</dc:date>
    </item>
  </channel>
</rss>

