<?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: Prevent title wrapping in ODS Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874725#M345623</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;Are you showing all of your code? I don't see any embedded_titles suboption, so I'm not sure where your titles are wrapping or not wrapping.&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you are trying to over-control the cellwidths and row heights. When I simplify all the suboptions and include the embedded_titles suboption, I am not seeing any wrapping, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1683657260853.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83754iCA68C9EF05794A99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1683657260853.png" alt="Cynthia_sas_0-1683657260853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can tell, I used SASHELP.PRDSALE for my example because it has a date variable that I can use for the first column. I made fake values for the macro variables in the TITLE statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 18:36:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2023-05-09T18:36:05Z</dc:date>
    <item>
      <title>Prevent title wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874697#M345609</link>
      <description>&lt;P&gt;The following code produces titles that wrap and a merge cells.&amp;nbsp; &amp;nbsp;Can I prevent both?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;35 ods excel options (Sheet_name="Table" sheet_interval='NOW' row_heights='40,0'&lt;BR /&gt;36 ABSOLUTE_COLUMN_WIDTH = '10,30,30' flow="header,data");&lt;BR /&gt;37&lt;BR /&gt;38 proc report data=Daily3;&lt;BR /&gt;39 col Date Tot_Avg Adult_Cov;&lt;BR /&gt;40 define Date / display 'Date';&lt;BR /&gt;41 define Tot_Avg / display format=comma8. 'Number of patients hospitalized with confirmed COVID-19 (7 day average)';&lt;BR /&gt;42 define Adult_Cov / display format=comma8. 'Number of hospitals reporting on adult patients with confirmed COVID';&lt;BR /&gt;43 /*AP implies data should start on August 1, 2020*/&lt;BR /&gt;44 where Date ge mdy(8,1,2020);&lt;BR /&gt;45 Title 'Analysis of COVID-19 Hospitalizations Data';&lt;BR /&gt;46 Title2 'Through May 2023';&lt;BR /&gt;47 Title3 "Median number of patients hospitalized with confirmed COVID-19 (7 day average):&amp;amp;median1 (thru &amp;amp;max_date1)";&lt;BR /&gt;48 Title4 "Median number of patients hospitalized with confirmed COVID-19 (7 day average):&amp;amp;median2 (thru &amp;amp;max_date2)";&lt;BR /&gt;49 Title5 "Median number of patients hospitalized with confirmed COVID-19 (7 day average):&amp;amp;median3 (thru &amp;amp;max_date3)";&lt;BR /&gt;50 run;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 16:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874697#M345609</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2023-05-09T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent title wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874725#M345623</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Are you showing all of your code? I don't see any embedded_titles suboption, so I'm not sure where your titles are wrapping or not wrapping.&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you are trying to over-control the cellwidths and row heights. When I simplify all the suboptions and include the embedded_titles suboption, I am not seeing any wrapping, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1683657260853.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83754iCA68C9EF05794A99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1683657260853.png" alt="Cynthia_sas_0-1683657260853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can tell, I used SASHELP.PRDSALE for my example because it has a date variable that I can use for the first column. I made fake values for the macro variables in the TITLE statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 18:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874725#M345623</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-05-09T18:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent title wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874736#M345625</link>
      <description>Here is the full code between the ods statements&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods excel file=[output URL];&lt;BR /&gt;options (absolute_column_width='80'&lt;BR /&gt;embedded_titles='yes' embedded_footnotes='yes' sheet_name='Info'&lt;BR /&gt;sheet_interval='none' flow='tables');&lt;BR /&gt;&lt;BR /&gt;%info&lt;BR /&gt;&lt;BR /&gt;ods excel options (Sheet_name="Table" sheet_interval='NOW' row_heights='40,0'&lt;BR /&gt;ABSOLUTE_COLUMN_WIDTH = '10,30,30' flow="header,data");&lt;BR /&gt;&lt;BR /&gt;proc report data=Daily3;&lt;BR /&gt;col Date Tot_Avg Adult_Cov;&lt;BR /&gt;define Date / display 'Date';&lt;BR /&gt;define Tot_Avg / display format=comma8. 'Number of patients hospitalized with confirmed COVID-19 (7 day average)';&lt;BR /&gt;define Adult_Cov / display format=comma8. 'Number of hospitals reporting on adult patients with confirmed COVID';&lt;BR /&gt;/*AP implies data should start on August 1, 2020*/&lt;BR /&gt;where Date ge mdy(8,1,2020);&lt;BR /&gt;Title 'Analysis of COVID-19 Hospitalizations Data';&lt;BR /&gt;Title2 'Through May 2023';&lt;BR /&gt;Title3 "Median number of patients hospitalized with confirmed COVID-19 (7 day average):&amp;amp;median1 (thru &amp;amp;max_date1)";&lt;BR /&gt;Title4 "Median number of patients hospitalized with confirmed COVID-19 (7 day average):&amp;amp;median2 (thru &amp;amp;max_date2)";&lt;BR /&gt;Title5 "Median number of patients hospitalized with confirmed COVID-19 (7 day average):&amp;amp;median3 (thru &amp;amp;max_date3)";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods excel close;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 May 2023 20:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874736#M345625</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2023-05-09T20:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent title wrapping in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874785#M345646</link>
      <description>Hi: As I show in my example, my titles are NOT wrapping. So I would recommend that you remove all the suboptions and width controls out of your syntax and start with code more like the code I show. Then introduce only one change at a time until you find the one that's causing the wrapping. Without data, it is impossible to run your code. And since I can show that the TITLES don't wrap with taking all the defaults on width and row heights, there's something in your options that is conflicting and causing the issue.&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 09 May 2023 21:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prevent-title-wrapping-in-ODS-Excel/m-p/874785#M345646</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-05-09T21:56:39Z</dc:date>
    </item>
  </channel>
</rss>

