<?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: change front of 'by variable' for ods excel output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397774#M19395</link>
    <description>Thanks Ballardw for helping. I modified the code based on your suggestion,&lt;BR /&gt;please see below. It still does not change the font_face to Times New&lt;BR /&gt;Roman. Can you tell what is wrong with the code?&lt;BR /&gt;&lt;BR /&gt;Also is there a way to center the text of location(text in red) above the&lt;BR /&gt;table? The table can be found below the code?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to anyone who can help!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP FILE='C:xxx.XML'&lt;BR /&gt;STYLE=newstyle OPTIONS (sheet_interval='none' sheet_name='TEST'&lt;BR /&gt;embedded_titles='on' FITTOPAGE='YES' ORIENTATION='LANDSCAPE');&lt;BR /&gt;PROC TABULATE DATA=SHARE8 MISSING ORDER=FORMATED;&lt;BR /&gt;CLASS FP TERM_CODE LOCATION;&lt;BR /&gt;TABLE LOCATION*[STYLE=[FONT_FACE="TIMES NEW ROMAN"]],&lt;BR /&gt;FP=' ' ALL='Total',&lt;BR /&gt;TERM_CODE=' '*(N='#'*F=COMMA6. PCTN='%'*F=COMMA6.1);&lt;BR /&gt;FORMAT GENDER $SEX. AGE OLD. COUNTY2 $COUNTY. CIP_CODE $DEGREE. ATTENDANCE&lt;BR /&gt;NEW. LOCATION LOCATION. TERM_CODE $TERM.;&lt;BR /&gt;run;&lt;BR /&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOCATION Distance Education&lt;BR /&gt;Fall 2012 Fall 2013 Fall 2014 Fall 2015 Fall 2016 Fall 2017&lt;BR /&gt;# % # % # % # % # % # %&lt;BR /&gt;Full-time 51 3.2 42 2.5 46 2.9 45 3.2 32 2.1 33 2.2&lt;BR /&gt;Part-time 1565 96.8 1606 97.5 1519 97.1 1365 96.8 1457 97.9 1461 97.8&lt;BR /&gt;Total 1616 100 1648 100 1565 100 1410 100 1489 100 1494 100&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Sep 2017 13:35:59 GMT</pubDate>
    <dc:creator>Mindy_Su</dc:creator>
    <dc:date>2017-09-21T13:35:59Z</dc:date>
    <item>
      <title>change front of 'by variable' for ods excel output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397587#M19391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used the following code to get SAS output &amp;nbsp;in Excel. Variable" Location " is already formatted. "By location" is used &amp;nbsp;to create a seperate table for each location. Attached is the example for one of the tables created.You can see everything else (title, data, headers, ect) are in the right style (Times New Roman, 10pt) except for the text &amp;nbsp;"LOCATION=Distance Education". Is there any way to change the style of &amp;nbsp;&lt;SPAN&gt;"LOCATION=Distance Education" so it has Times New Roman as Font_Face and 10pt as Font_Size?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc template;&lt;/P&gt;&lt;P&gt;define style styles.newstyle;&lt;BR /&gt;parent = styles.minimal;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;style data/&lt;BR /&gt;background = white&lt;BR /&gt;foreground = black&lt;BR /&gt;font_style = Roman&lt;BR /&gt;font_weight = medium&lt;BR /&gt;font_size = 10pt&lt;BR /&gt;font_face = "Times New Roman"&lt;BR /&gt;textalign=center&lt;BR /&gt;verticalalign=middle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;style header/&lt;BR /&gt;background = white&lt;BR /&gt;foreground = black&lt;BR /&gt;font_style = Roman&lt;BR /&gt;font_weight = medium&lt;BR /&gt;font_size = 10pt&lt;BR /&gt;font_face = "Times New Roman";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;style systemtitle/&lt;BR /&gt;background = white&lt;BR /&gt;foreground = black&lt;BR /&gt;font_style = Roman&lt;BR /&gt;font_weight = medium&lt;BR /&gt;font_size = 10pt&lt;BR /&gt;font_face = "Times New Roman"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;style table/&lt;BR /&gt;cellspacing=0&lt;BR /&gt;cellpadding=7&lt;BR /&gt;FRAME=BOX&lt;BR /&gt;RULES=all&lt;BR /&gt;borderwidth = 1pt&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;END;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP FILE='C:\xxx\ODSOUTPUT.XML'&lt;BR /&gt;STYLE=newstyle OPTIONS (sheet_interval='none' sheet_name='TEST' embedded_titles='on' FITTOPAGE='YES' ORIENTATION='LANDSCAPE');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC TABULATE DATA=xxx MISSING ORDER=FORMATED;&lt;BR /&gt;CLASS FP TERM_CODE location;&lt;BR /&gt;TABLE FP=' ' ALL='Total',&lt;BR /&gt;TERM_CODE=' '*(N='#'*F=COMMA6. PCTN&amp;lt;FP ALL&amp;gt;='%'*F=COMMA6.1);&lt;BR /&gt;FORMAT &amp;nbsp;LOCATION LOCATION. TERM_CODE $TERM.;&lt;BR /&gt;BY LOCATION;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 19:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397587#M19391</guid>
      <dc:creator>Mindy_Su</dc:creator>
      <dc:date>2017-09-20T19:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: change front of 'by variable' for ods excel output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397595#M19392</link>
      <description>&lt;P&gt;In Proc tabulate I would not use BY for most things. Instead use that variable in the Page position of the table and style overrides instead of trying to find the esoteric items that may be needed for BY lines in a style&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC TABULATE DATA=xxx MISSING ORDER=FORMATED;
   CLASS FP TERM_CODE location;
   TABLE Location *style=[style options like font and size],
         FP=' ' ALL='Total',
         TERM_CODE=' '*(N='#'*F=COMMA6. PCTN&amp;lt;FP ALL&amp;gt;='%'*F=COMMA6.1)
   ;
   FORMAT  LOCATION LOCATION. TERM_CODE $TERM.;

run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397595#M19392</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-20T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: change front of 'by variable' for ods excel output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397774#M19395</link>
      <description>Thanks Ballardw for helping. I modified the code based on your suggestion,&lt;BR /&gt;please see below. It still does not change the font_face to Times New&lt;BR /&gt;Roman. Can you tell what is wrong with the code?&lt;BR /&gt;&lt;BR /&gt;Also is there a way to center the text of location(text in red) above the&lt;BR /&gt;table? The table can be found below the code?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to anyone who can help!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ODS TAGSETS.EXCELXP FILE='C:xxx.XML'&lt;BR /&gt;STYLE=newstyle OPTIONS (sheet_interval='none' sheet_name='TEST'&lt;BR /&gt;embedded_titles='on' FITTOPAGE='YES' ORIENTATION='LANDSCAPE');&lt;BR /&gt;PROC TABULATE DATA=SHARE8 MISSING ORDER=FORMATED;&lt;BR /&gt;CLASS FP TERM_CODE LOCATION;&lt;BR /&gt;TABLE LOCATION*[STYLE=[FONT_FACE="TIMES NEW ROMAN"]],&lt;BR /&gt;FP=' ' ALL='Total',&lt;BR /&gt;TERM_CODE=' '*(N='#'*F=COMMA6. PCTN='%'*F=COMMA6.1);&lt;BR /&gt;FORMAT GENDER $SEX. AGE OLD. COUNTY2 $COUNTY. CIP_CODE $DEGREE. ATTENDANCE&lt;BR /&gt;NEW. LOCATION LOCATION. TERM_CODE $TERM.;&lt;BR /&gt;run;&lt;BR /&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOCATION Distance Education&lt;BR /&gt;Fall 2012 Fall 2013 Fall 2014 Fall 2015 Fall 2016 Fall 2017&lt;BR /&gt;# % # % # % # % # % # %&lt;BR /&gt;Full-time 51 3.2 42 2.5 46 2.9 45 3.2 32 2.1 33 2.2&lt;BR /&gt;Part-time 1565 96.8 1606 97.5 1519 97.1 1365 96.8 1457 97.9 1461 97.8&lt;BR /&gt;Total 1616 100 1648 100 1565 100 1410 100 1489 100 1494 100&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2017 13:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397774#M19395</guid>
      <dc:creator>Mindy_Su</dc:creator>
      <dc:date>2017-09-21T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: change front of 'by variable' for ods excel output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397794#M19396</link>
      <description>&lt;P&gt;I don't use the page options often so originally supplied something based on anothe example I have.&lt;/P&gt;
&lt;P&gt;You would place the options for the Page variable Location in the Class statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Class location / style=[fontfamily='Times New Roman' just=c];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and remove Location from the other class statement an the style override from the table statement.&lt;/P&gt;
&lt;P&gt;I am not sure if you are requesting to have the text for location in red or not. If so add Color=red to the style elements in the class statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice that the options are Fontfamily FontSize Fontstyle Fontweight and Fontwidth to address font characteristics.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 15:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/change-front-of-by-variable-for-ods-excel-output/m-p/397794#M19396</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-21T15:13:11Z</dc:date>
    </item>
  </channel>
</rss>

