<?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: How do I expand the height of one header row in tagsets.ExcelXP? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316226#M17433</link>
    <description>&lt;PRE&gt;
try cellheight=


style(header) = {fontfamily='Courier New' font_size = 8pt just = C   cellheight=8cm}


&lt;/PRE&gt;</description>
    <pubDate>Fri, 02 Dec 2016 12:03:25 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-12-02T12:03:25Z</dc:date>
    <item>
      <title>How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/315975#M17416</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a little stumped. &amp;nbsp;I have an issue with one particular row that was created with tagsets.ExcelXP in SAS 9.2. &amp;nbsp;This row is collapsed and only a portion of the line is visible. &amp;nbsp;How can I expand the height of this particular header row? &amp;nbsp;This header row is created using the COLUMNS statement. &amp;nbsp;I used the ^S for underlining for the first header. &amp;nbsp;Should I use another ^S attribute to control the height of this particular row (second header)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what it looks like (see row 4 where it shows "Oct. 2015 to" only):&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6178i22816CC629ABBF92/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="tab9_collapsed.JPG" title="tab9_collapsed.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the desired output in row 4 (it shows all 3 lines):&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6179iE0B999AE65643858/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="tab9_correct.JPG" title="tab9_correct.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a code snippet:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   options nodate orientation = landscape pageno = 1
           topmargin = 0.4in bottommargin = 0.4in
           leftmargin = 0.4in rightmargin = 0.4in;

   ods listing close;
   ods escapechar = '^';

   title1 h=8pt j=l f='Courier New' "TABLE 9. Aggregate weekly hours and payrolls of production and nonsupervisory employees, seasonally adjusted (in thousands)";

   footnote h=8pt j=l f='Courier New';

   ods tagsets.ExcelXP file = "&amp;amp;ariesx.table9.xml" style=MONOSPACE
                       OPTIONS(EMBEDDED_TITLES = 'YES' EMBEDDED_FOOTNOTES = 'YES' EMBED_TITLES_ONCE = 'YES'
                               ASCII_DOTS = 'NO' AUTOFIT_HEIGHT = 'YES' SHEET_NAME = 'Table 9');

   proc report data = output_table_9 nowd ls = 200 list headskip headline style = monospace nocenter
               style(report) = {fontfamily='Courier New' font_size = 8pt}
               style(header) = {fontfamily='Courier New' font_size = 8pt just = C}
               style(column) = {fontfamily='Courier New' font_size = 8pt just = C};

      columns 
              ('^S={TEXTDECORATION=underline}Aggregate weekly hours^S={}' ind_name WHc ("Change from/&amp;amp;MMMYYp. to/&amp;amp;MMMYYc." OTMCc_wh OTMPCcwh)
                                                                                       ("Change from/&amp;amp;MMMYYp. to/&amp;amp;MMMYYc." OTYCc_wh OTYPCcwh));

      define ind_name / "/ Industry /" display left STYLE(COLUMN) = {JUST = L CELLWIDTH = 3in};
      define WHc / "Aggregate/weekly/hours" display format = 9. STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTMCc_WH / "Number" display format = 8. STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTMPCcWH / "Percent" display format = 5.1 STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTYCc_WH / "Number" display format = 8. STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTYPCcWH / "Percent" display format = 5.1 STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
   run;

   ods pdf startpage = no;

   proc report data = output_table_9 nowd ls = 200 list headskip headline style = monospace nocenter
               style(report) = {fontfamily='Courier New' font_size = 8pt}
               style(header) = {fontfamily='Courier New' font_size = 8pt just = C}
               style(column) = {fontfamily='Courier New' font_size = 8pt just = C};

      columns 
              ('^S={TEXTDECORATION=underline}Aggregate weekly payrolls^S={}' ind_name PRc ("Change from/&amp;amp;MMMYYp. to/&amp;amp;MMMYYc." OTMCc_PR OTMPCcPR)
                                                                                          ("Change from/&amp;amp;MMMYYp. to/&amp;amp;MMMYYc." OTYCc_PR OTYPCcPR));

      define ind_name / "/ Industry /" display left STYLE(COLUMN) = {JUST = L CELLWIDTH = 3in};
      define PRc / "Aggregate/weekly/payrolls" display format = 9. STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTMCc_PR / "Number" display format = 8. STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTMPCcPR / "Percent" display format = 5.1 STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTYCc_PR / "Number" display format = 8. STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
      define OTYPCcPR / "Percent" display format = 5.1 STYLE(COLUMN) = {JUST = C CELLWIDTH = 1in};
   run;

   ods tagsets.ExcelXP close;
   ods listing;

   title;
   footnote;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I appreciate your assistance in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Curtis&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/315975#M17416</guid>
      <dc:creator>CurtisER</dc:creator>
      <dc:date>2016-12-01T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316015#M17417</link>
      <description>Hi:&lt;BR /&gt;  Why do you have an ODS PDF statement in the middle of your code?&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 01 Dec 2016 17:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316015#M17417</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-01T17:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316017#M17418</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt; wrote:&lt;BR /&gt;Hi:&lt;BR /&gt;Why do you have an ODS PDF statement in the middle of your code?&lt;BR /&gt;cynthia&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'll just say that's an oopsie. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &amp;nbsp;Please ignore that statement. &amp;nbsp;Good catch, though!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PDF version worked as expected but the spreadsheet is what I am working on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 17:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316017#M17418</guid>
      <dc:creator>CurtisER</dc:creator>
      <dc:date>2016-12-01T17:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316025#M17419</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;... Thanks for the info. Options for PROC REPORT like HEADLINE, HEADSKIP, LS are not supported except for the LISTING destination which you have closed.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Debugging will be hard without some data to test with.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Also, your use of STYLE=MONOSPACE in the PROC REPORT statement, while it does not produce any error message is probably not doing anything for you in this code. the STYLE=MONOSPACE in the ODS TAGSETS.EXCELXP statement is the one that is being followed. I found that the font size seems to be 8pt Courier for the style=monospace, so I am not sure why you are respecifying the font size or the font family.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The simple test below worked for me.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6181i8DB0B7421C1B6BA7/image-size/original?v=v2&amp;amp;px=-1" alt="spanning_text_fit.png" title="spanning_text_fit.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 18:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316025#M17419</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-01T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316071#M17423</link>
      <description>Thanks for the tip, Cynthia! The user wanted line breaks in "Change from/MMM YYYY to/MMM YYYY" where / is the line break so it's a 3-line header. I'll try your example and see if I can accomplish this.</description>
      <pubDate>Thu, 01 Dec 2016 20:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316071#M17423</guid>
      <dc:creator>CurtisER</dc:creator>
      <dc:date>2016-12-01T20:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316088#M17424</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Well, it worked for me using this syntax. The heights were OK without doing anything special.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6184i3C1F48761CDC5092/image-size/original?v=v2&amp;amp;px=-1" alt="with_split.png" title="with_split.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 21:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316088#M17424</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-01T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316226#M17433</link>
      <description>&lt;PRE&gt;
try cellheight=


style(header) = {fontfamily='Courier New' font_size = 8pt just = C   cellheight=8cm}


&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Dec 2016 12:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316226#M17433</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-02T12:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316360#M17436</link>
      <description>&lt;P&gt;I tried&amp;nbsp;AUTOFIT_HEIGHT = 'NO' and&amp;nbsp;&lt;/P&gt;&lt;P&gt;columns&lt;BR /&gt;('^S={TEXTDECORATION=underline}Aggregate weekly hours^S={}' ind_name WHc ("&lt;STRONG&gt;^S={CELLHEIGHT=0.25IN CELLWIDTH = 0.5IN}&lt;/STRONG&gt;Change from/&amp;amp;MMMYYp. to/&amp;amp;MMMYYc.^S={}" OTMCc_wh OTMPCcwh)&lt;BR /&gt;("&lt;STRONG&gt;^S={CELLHEIGHT=0.25IN CELLWIDTH = 0.5IN}&lt;/STRONG&gt;Change from/&amp;amp;MMMYYp. to/&amp;amp;MMMYYc.^S={}" OTYCc_wh OTYPCcwh));&lt;/P&gt;&lt;P&gt;define ind_name / "Industry" display left STYLE(COLUMN) = {JUST = L CELLWIDTH = 5IN};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It produced the desired height as I wanted. &amp;nbsp;However,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the CELLWIDTH for define IND_NAME isn't working and the width is smaller than the length of the value.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316360#M17436</guid>
      <dc:creator>CurtisER</dc:creator>
      <dc:date>2016-12-02T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I expand the height of one header row in tagsets.ExcelXP?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316390#M17439</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I found that I had some issues when I had a default set in the PROC REPORT statement, but once I got rid of that in favor of specifying a size on every DEFINE, then it worked for me-- in SAS 9.4 M3 without adjusting the height.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6199i8F7E49229DB7CBA6/image-size/original?v=v2&amp;amp;px=-1" alt="this_approach_worked_for_me.png" title="this_approach_worked_for_me.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 21:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-expand-the-height-of-one-header-row-in-tagsets-ExcelXP/m-p/316390#M17439</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-02T21:07:40Z</dc:date>
    </item>
  </channel>
</rss>

