<?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 Data in Column name separated into two lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-in-Column-name-separated-into-two-lines/m-p/759111#M239820</link>
    <description>&lt;P&gt;Hello Everyone - I have this code below which works just fine. Output is exported to excel. Problem is it splits data for field&amp;nbsp;MDL_NM in 2 lines. Even after expanding the column it stays in 2 lines. Can someone please help fix my code. Has frozen_headers something to do with this problem? Output is shown as pic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options nobyline;&lt;BR /&gt;ods excel options(sheet_interval='table' sheet_name='Sales' suppress_bylines='on' frozen_headers="6" );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TITLE1 justify= left color= black height=8pt "abc";&lt;BR /&gt;Title2 justify= left color= black height=8pt "xyz";&lt;BR /&gt;Title3 justify= left color= black height=8pt "zzz";&lt;BR /&gt;Title4 justify= left color= black height=8pt "yyy";&lt;BR /&gt;Title5 justify= left color= black height=8pt "aaa";&lt;BR /&gt;FOOTNOTE1 "Generated by the SAS System (&amp;amp;_SASSERVERNAME, &amp;amp;SYSSCPL) on %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) at %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";&lt;/P&gt;
&lt;P&gt;proc report data=WORK.QUERY_FOR_TRNSTRANSPOSED_000B nowd;&lt;BR /&gt;column Net MFR_NM MDL_NM '2 Year'n, SUM='2 Year_SUM'n '3 Year'n, SUM='3 Year_SUM'n Monthly, SUM=Monthly_SUM Weekly, SUM=Weekly_SUM Total1, SUM=Total1_SUM 'New Prod'n, SUM='New Prod_SUM'n 'Upgrade_Prod'n, SUM='Upgrade__Prod_SUM'n Upgrade, SUM=Upgrade_SUM Total, SUM=Total_SUM;&lt;BR /&gt;define Net / display 'Net' missing;&lt;BR /&gt;compute Net;&lt;BR /&gt;if _break_ eq ' ' then do;&lt;BR /&gt;if Net ne ' ' then hold1=Net;&lt;BR /&gt;end;&lt;BR /&gt;if upcase(_break_)="NET" then do;&lt;BR /&gt;call define("Net", 'style', 'style=[pretext="Subtotal "]');&lt;BR /&gt;end;&lt;BR /&gt;if _break_='_RBREAK_' then do;&lt;BR /&gt;call define("Net", 'style', 'style=[pretext="Total"]');&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;define MFR_NM / display 'MFR_NM' format=$50. missing order=formatted;&lt;BR /&gt;compute MFR_NM;&lt;BR /&gt;if _break_ eq ' ' then do;&lt;BR /&gt;if MFR_NM ne ' ' then hold2=MFR_NM;&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;define MDL_NM /width=100 display 'MDL_NM' format=$50. missing order=formatted;&lt;BR /&gt;compute MDL_NM;&lt;BR /&gt;if _break_ eq ' ' then do;&lt;BR /&gt;if MDL_NM ne ' ' then hold3=MDL_NM;&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;define '2 Year'n / analysis SUM '2 Year' missing;&lt;BR /&gt;define '3 Year'n / analysis SUM '3 Year' missing;&lt;BR /&gt;define Monthly / analysis SUM 'Monthly' missing;&lt;BR /&gt;define Weekly / analysis SUM 'Weekly' missing;&lt;BR /&gt;define Total1 / analysis SUM 'Total1' missing;&lt;BR /&gt;define 'New Prod'n / analysis SUM 'New Prod' missing;&lt;BR /&gt;define 'Upgrade_Prod'n / analysis SUM 'Upgrade_Prod' missing;&lt;BR /&gt;define Upgrade / analysis SUM 'Upgrade' missing;&lt;BR /&gt;define Total / analysis SUM 'Total' missing;&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;TITLE; FOOTNOTE;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods excel close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasuser_sk_0-1628014012326.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62220iD12AC3FEA748F2D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sasuser_sk_0-1628014012326.png" alt="sasuser_sk_0-1628014012326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 18:07:32 GMT</pubDate>
    <dc:creator>sasuser_sk</dc:creator>
    <dc:date>2021-08-03T18:07:32Z</dc:date>
    <item>
      <title>Data in Column name separated into two lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-in-Column-name-separated-into-two-lines/m-p/759111#M239820</link>
      <description>&lt;P&gt;Hello Everyone - I have this code below which works just fine. Output is exported to excel. Problem is it splits data for field&amp;nbsp;MDL_NM in 2 lines. Even after expanding the column it stays in 2 lines. Can someone please help fix my code. Has frozen_headers something to do with this problem? Output is shown as pic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options nobyline;&lt;BR /&gt;ods excel options(sheet_interval='table' sheet_name='Sales' suppress_bylines='on' frozen_headers="6" );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TITLE1 justify= left color= black height=8pt "abc";&lt;BR /&gt;Title2 justify= left color= black height=8pt "xyz";&lt;BR /&gt;Title3 justify= left color= black height=8pt "zzz";&lt;BR /&gt;Title4 justify= left color= black height=8pt "yyy";&lt;BR /&gt;Title5 justify= left color= black height=8pt "aaa";&lt;BR /&gt;FOOTNOTE1 "Generated by the SAS System (&amp;amp;_SASSERVERNAME, &amp;amp;SYSSCPL) on %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) at %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";&lt;/P&gt;
&lt;P&gt;proc report data=WORK.QUERY_FOR_TRNSTRANSPOSED_000B nowd;&lt;BR /&gt;column Net MFR_NM MDL_NM '2 Year'n, SUM='2 Year_SUM'n '3 Year'n, SUM='3 Year_SUM'n Monthly, SUM=Monthly_SUM Weekly, SUM=Weekly_SUM Total1, SUM=Total1_SUM 'New Prod'n, SUM='New Prod_SUM'n 'Upgrade_Prod'n, SUM='Upgrade__Prod_SUM'n Upgrade, SUM=Upgrade_SUM Total, SUM=Total_SUM;&lt;BR /&gt;define Net / display 'Net' missing;&lt;BR /&gt;compute Net;&lt;BR /&gt;if _break_ eq ' ' then do;&lt;BR /&gt;if Net ne ' ' then hold1=Net;&lt;BR /&gt;end;&lt;BR /&gt;if upcase(_break_)="NET" then do;&lt;BR /&gt;call define("Net", 'style', 'style=[pretext="Subtotal "]');&lt;BR /&gt;end;&lt;BR /&gt;if _break_='_RBREAK_' then do;&lt;BR /&gt;call define("Net", 'style', 'style=[pretext="Total"]');&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;define MFR_NM / display 'MFR_NM' format=$50. missing order=formatted;&lt;BR /&gt;compute MFR_NM;&lt;BR /&gt;if _break_ eq ' ' then do;&lt;BR /&gt;if MFR_NM ne ' ' then hold2=MFR_NM;&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;define MDL_NM /width=100 display 'MDL_NM' format=$50. missing order=formatted;&lt;BR /&gt;compute MDL_NM;&lt;BR /&gt;if _break_ eq ' ' then do;&lt;BR /&gt;if MDL_NM ne ' ' then hold3=MDL_NM;&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;BR /&gt;define '2 Year'n / analysis SUM '2 Year' missing;&lt;BR /&gt;define '3 Year'n / analysis SUM '3 Year' missing;&lt;BR /&gt;define Monthly / analysis SUM 'Monthly' missing;&lt;BR /&gt;define Weekly / analysis SUM 'Weekly' missing;&lt;BR /&gt;define Total1 / analysis SUM 'Total1' missing;&lt;BR /&gt;define 'New Prod'n / analysis SUM 'New Prod' missing;&lt;BR /&gt;define 'Upgrade_Prod'n / analysis SUM 'Upgrade_Prod' missing;&lt;BR /&gt;define Upgrade / analysis SUM 'Upgrade' missing;&lt;BR /&gt;define Total / analysis SUM 'Total' missing;&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;TITLE; FOOTNOTE;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods excel close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasuser_sk_0-1628014012326.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62220iD12AC3FEA748F2D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sasuser_sk_0-1628014012326.png" alt="sasuser_sk_0-1628014012326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 18:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-in-Column-name-separated-into-two-lines/m-p/759111#M239820</guid>
      <dc:creator>sasuser_sk</dc:creator>
      <dc:date>2021-08-03T18:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data in Column name separated into two lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-in-Column-name-separated-into-two-lines/m-p/759118#M239821</link>
      <description>&lt;P&gt;Try using FLOW='tables' option of ODS EXCEL.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 18:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-in-Column-name-separated-into-two-lines/m-p/759118#M239821</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-08-03T18:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data in Column name separated into two lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-in-Column-name-separated-into-two-lines/m-p/759120#M239822</link>
      <description>&lt;P&gt;Thank you Tom! Your suggestion helped.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 18:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-in-Column-name-separated-into-two-lines/m-p/759120#M239822</guid>
      <dc:creator>sasuser_sk</dc:creator>
      <dc:date>2021-08-03T18:38:35Z</dc:date>
    </item>
  </channel>
</rss>

