<?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 How to unwrapped header text in proc report? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-unwrapped-header-text-in-proc-report/m-p/480659#M21325</link>
    <description>&lt;P&gt;This is the code for my proc report. Somehow the header is cut off and wrapped text. I wanted unwrapped the header but not sure what am I missing in my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS Tagsets.ExcelXP OPTIONS ( orientation='landscape' PAPERSIZE='LEGAL' sheet_name='SAMHSA_SA_OTP_Matched' &lt;BR /&gt; FITTOPAGE='yes' AUTOFIT_HEIGHT='yes' FROZEN_HEADERS='5' /*FROZEN_ROWHEADERS='6'*/) style=fancyprinter;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc report data=SAMHSA_final nofs split=' *'&lt;BR /&gt; style(header)=[background = $color. foreground=BLACK BORDERCOLOR=black borderspacing=1 borderwidth=1&lt;BR /&gt; font_face=ARIAL font_size=1.5 font_weight=bold /*CELLWIDTH=100pt*/] &lt;BR /&gt; style(column)=[font_face=ARIAL font_size=1.5 BORDERCOLOR=BLACK borderspacing=1 borderwidth=1 /*CELLHEIGHT=11pt*/] &lt;BR /&gt; style(report)=[BORDERCOLOR=BLACK borderspacing=1 borderwidth=1 ];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; column ('Substance Abuse and Mental Health Services Administration (SAMHSA) Provider Listing' &lt;BR /&gt; SAMHSA_NAME_1 SAMHSA_NAME_2 SAMHSA_STREET_1 SAMHSA_STREET_2 &lt;BR /&gt; SAMHSA_CITY SAMHSA_STATE SAMHSA_ZIP SAMHSA_COUNTY SAMHSA_PHONE&lt;BR /&gt; SAMHSA_LATITUDE SAMHSA_LONGITUDE SAMHSA_Type_Facility);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;define SAMHSA_NAME_1/display width=20 style={just=left foreground=black} style(header)={background=CXB0C4DE } &lt;BR /&gt; style(column)={background=CXB0C4DE} flow ;&lt;BR /&gt; define SAMHSA_NAME_2/display width=15 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_STREET_1/display width=15 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_STREET_2/display width=15 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_CITY/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_STATE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_ZIP/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_COUNTY/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_PHONE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_LATITUDE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_LONGITUDE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_Type_Facility/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the output now:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21950i71931FB1A4721037/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is what i want:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21951iB0B2480617628ECD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 22:34:38 GMT</pubDate>
    <dc:creator>ernie86</dc:creator>
    <dc:date>2018-07-23T22:34:38Z</dc:date>
    <item>
      <title>How to unwrapped header text in proc report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-unwrapped-header-text-in-proc-report/m-p/480659#M21325</link>
      <description>&lt;P&gt;This is the code for my proc report. Somehow the header is cut off and wrapped text. I wanted unwrapped the header but not sure what am I missing in my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS Tagsets.ExcelXP OPTIONS ( orientation='landscape' PAPERSIZE='LEGAL' sheet_name='SAMHSA_SA_OTP_Matched' &lt;BR /&gt; FITTOPAGE='yes' AUTOFIT_HEIGHT='yes' FROZEN_HEADERS='5' /*FROZEN_ROWHEADERS='6'*/) style=fancyprinter;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc report data=SAMHSA_final nofs split=' *'&lt;BR /&gt; style(header)=[background = $color. foreground=BLACK BORDERCOLOR=black borderspacing=1 borderwidth=1&lt;BR /&gt; font_face=ARIAL font_size=1.5 font_weight=bold /*CELLWIDTH=100pt*/] &lt;BR /&gt; style(column)=[font_face=ARIAL font_size=1.5 BORDERCOLOR=BLACK borderspacing=1 borderwidth=1 /*CELLHEIGHT=11pt*/] &lt;BR /&gt; style(report)=[BORDERCOLOR=BLACK borderspacing=1 borderwidth=1 ];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; column ('Substance Abuse and Mental Health Services Administration (SAMHSA) Provider Listing' &lt;BR /&gt; SAMHSA_NAME_1 SAMHSA_NAME_2 SAMHSA_STREET_1 SAMHSA_STREET_2 &lt;BR /&gt; SAMHSA_CITY SAMHSA_STATE SAMHSA_ZIP SAMHSA_COUNTY SAMHSA_PHONE&lt;BR /&gt; SAMHSA_LATITUDE SAMHSA_LONGITUDE SAMHSA_Type_Facility);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;define SAMHSA_NAME_1/display width=20 style={just=left foreground=black} style(header)={background=CXB0C4DE } &lt;BR /&gt; style(column)={background=CXB0C4DE} flow ;&lt;BR /&gt; define SAMHSA_NAME_2/display width=15 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_STREET_1/display width=15 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_STREET_2/display width=15 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_CITY/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_STATE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_ZIP/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_COUNTY/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_PHONE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_LATITUDE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_LONGITUDE/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;BR /&gt; define SAMHSA_Type_Facility/display width=10 style={just=left foreground=black} style(header)={background=CXB0C4DE} &lt;BR /&gt; style(column)={background=CXB0C4DE} flow;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the output now:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21950i71931FB1A4721037/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is what i want:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21951iB0B2480617628ECD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 22:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-unwrapped-header-text-in-proc-report/m-p/480659#M21325</guid>
      <dc:creator>ernie86</dc:creator>
      <dc:date>2018-07-23T22:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to unwrapped header text in proc report?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-unwrapped-header-text-in-proc-report/m-p/561216#M22777</link>
      <description>&lt;P&gt;Hi, Since you did not post data, no one can run your code. However I do not observe what you describe. Using SAS 9.4M5 and either ODS EXCEL or ODS TAGSETS.EXCELXP, I do not have any wrapping for the spanning header, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="no_wrap_default.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29733i36FF88FDB520B333/image-size/large?v=v2&amp;amp;px=999" role="button" title="no_wrap_default.png" alt="no_wrap_default.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Notice that I took EVERYTHING out of the code except the font specification and my long header did not wrap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a few comments about your code, you've mixed some ODS options and style overrides with LISTING only options. For example WIDTH=15 or WIDTH=20 and FLOW are all listing only options that are ignored by ODS destinations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I also notice that you seem to NOT use units of measure&amp;nbsp; such as font_size=1.5? 1.5 what? pixels, points??? makes more sense to specify 10pt because 1.5 pt is really, really small. Even 1.5 pixels would be pretty tiny. You've commented out CELLHEIGHT. As you can see in my output, I didn't need to use CELLHEIGHT -- my fonts seem to be 10pt for the data cells and 12pt for the header cells. Did you want to go bigger or smaller than that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I didn't mess with borderwidths -- a borderwidth of 1, again is 1 pixel...I generally find you need a larger borderwidth for them to get bigger. Also there is a distinct chance that Excel won't honor your borderwidths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The use of 3 style overrides in 1 DEFINE statement is going to force ODS and PROC REPORT to try to resolve all the settings.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="overrides_too_many.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29734i0CBDE4DEF3702DBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="overrides_too_many.png" alt="overrides_too_many.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;if you want some style elements in common across all items on the report, then put what you want in the overrides in the PROC REPORT statement -- but 3 overrides in one DEFINE is just confusing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not seeing issues with my simplified version of your code. So my guess is something in your combination of overrides is messing up the spacing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 17:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-unwrapped-header-text-in-proc-report/m-p/561216#M22777</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-05-23T17:36:12Z</dc:date>
    </item>
  </channel>
</rss>

