<?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: Avoid line breaks when exporting long text to Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757693#M239195</link>
    <description>9.4 (TS1M4)&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Jul 2021 13:56:53 GMT</pubDate>
    <dc:creator>johnsville</dc:creator>
    <dc:date>2021-07-28T13:56:53Z</dc:date>
    <item>
      <title>Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757583#M239153</link>
      <description>&lt;P&gt;When running this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='%temp%\reports.xlsx' style=seaside options(flow="tables");
data T ;
  format X $256.;
  X='Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.';
proc print;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_1-1627446510780.png" style="width: 1128px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61929i98BC68A30205C1DD/image-dimensions/1128x141?v=v2" width="1128" height="141" role="button" title="ChrisNZ_1-1627446510780.png" alt="ChrisNZ_1-1627446510780.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried using the &lt;FONT face="courier new,courier"&gt;flow&lt;/FONT&gt; option (which I don't need) to no avail.&lt;/P&gt;
&lt;P&gt;Option&amp;nbsp;&lt;FONT face="courier new,courier"&gt;absolute_column_width&lt;/FONT&gt; doesn't seem to be effective for this either.&lt;/P&gt;
&lt;P&gt;Any way to avoid the line break?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 04:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757583#M239153</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-28T04:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757587#M239154</link>
      <description>&lt;P&gt;Using m5 the text seems to be misplaced, too:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="missplaced_text.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61930iAABD8A36827796EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="missplaced_text.png" alt="missplaced_text.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem gets worse, when using Report Writing Interface and merged cells, so there seems to be a problem in ods excel.&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file= '%temp%\rwi.xlsx' options (flow= 'tables' embedded_titles='yes');

data _null_;
   set sashelp.class end=jobDone;

   if _n_ = 1 then do;
      declare odsout rwi();
      rwi.table_start();
      rwi.head_start();
      rwi.row_start();
      rwi.format_cell(data: 'Long text, but not to long to fit above the header', column_span: 5);
      rwi.row_end();
      rwi.row_start();
      rwi.format_cell(data: 'Name');
      rwi.format_cell(data: 'Age');
      rwi.format_cell(data: 'Sex');
      rwi.format_cell(data: 'Weight');
      rwi.format_cell(data: 'Height');
      rwi.row_end();
      rwi.head_end();
      rwi.body_start();
   end;

   rwi.row_start();
   rwi.format_cell(data: Name);
   rwi.format_cell(data: Age);
   rwi.format_cell(data: Sex);
   rwi.format_cell(data: Weight);
   rwi.format_cell(data: Height);
   rwi.row_end();

   if jobDone then do;
      rwi.body_end();
      rwi.table_end();
   end;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blank_line.png" style="width: 448px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61931i7680C16E22567C0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="blank_line.png" alt="blank_line.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 06:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757587#M239154</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-28T06:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757676#M239190</link>
      <description>&lt;P&gt;Try this style:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='c:\temp\report.xlsx' style=seaside ;
data T ;
  format X $256.;
  X='Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.';
proc report data=t nowd;
columns x;
define x/style={ tagattr='wrap:no'};
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1627476466007.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61940iE42D9354B70B1671/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1627476466007.png" alt="Ksharp_0-1627476466007.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 12:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757676#M239190</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-07-28T12:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757689#M239193</link>
      <description>&lt;P&gt;I have had this same problem for years.&amp;nbsp; Adding the tag attribute wraptext=no did not solve the issue, although I now use that by default in every ODS/Excel report I generate.&amp;nbsp; Buried in discussions here years ago the only solution that effectively fixed it involved processing each row beforehand, then explicitly setting the cell length to be the maximum length encountered when you kick off ODS.&amp;nbsp; The short story is that ODS/Excel seems to compute a total row length on its own, using assumptions about a display window size, and then wraps text in cells for rows that are longer than the row length it somehow arrives at..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF there is something easier that since then seems to solve the issue, I never caught wind of it.&amp;nbsp; So I am waiting to be educated !&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 13:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757689#M239193</guid>
      <dc:creator>johnsville</dc:creator>
      <dc:date>2021-07-28T13:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757691#M239194</link>
      <description>&lt;P&gt;What version of SAS are you using?&amp;nbsp; The FLOW="TABLES" option was added in 9.4M4.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Lines-Wrapping-in-ODS-Excel/td-p/154925" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Lines-Wrapping-in-ODS-Excel/td-p/154925&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 13:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757691#M239194</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-28T13:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757693#M239195</link>
      <description>9.4 (TS1M4)&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2021 13:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757693#M239195</guid>
      <dc:creator>johnsville</dc:creator>
      <dc:date>2021-07-28T13:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757760#M239216</link>
      <description>&lt;P&gt;Your code works for me, SAS did not insert any HARD line breaks into the field.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61978iD270BF8740FD4805/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now if I make the column narrower then Excel will wrap the text.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 944px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61979i0862BB1672AE9CAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Unless I tell Excel not to "Wrap Text" for that cell/column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61980iF228D140FD9E1E8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Are you asking how to remove that Excel Wrap Text option from the cell?&lt;/P&gt;
&lt;P&gt;I think you might need to ask SAS support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 15:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757760#M239216</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-28T15:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757990#M239297</link>
      <description>&lt;P&gt;It's not about text wrap, that's why I included the formula bar in my screenshot.&lt;/P&gt;
&lt;P&gt;It seems like nothing changes the behaviour.&lt;/P&gt;
&lt;P&gt;So &lt;FONT face="courier new,courier"&gt;flow=&lt;/FONT&gt;&amp;nbsp; is not in M2 supported apparently,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;absolute_column_width =&amp;nbsp;&lt;/FONT&gt; &amp;nbsp;enlarges the cell but does not remove the line break.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; tagattr='wrap:no'&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;also has no effect; It probably isn't supported in M2 either.&lt;/P&gt;
&lt;P&gt;I'll blame my old 9.4M2 version then. We should upgrade to M7 in the next quarter. Or the next. I might have moved on by then...&lt;/P&gt;
&lt;P&gt;Thank you all for your suggestions. Unsure how to chose a solution as I couldn't obtain a result, most likely due to my out-of-date SAS version rather than a non-working answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 22:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757990#M239297</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-29T22:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757996#M239298</link>
      <description>&lt;P&gt;This could be a display-bug in excel, the screenshots posted earlier were created by m5, for the following m7 has been used:&lt;/P&gt;
&lt;P&gt;Without expanding the input field in the formular bar, the text seems cut after "ipsa":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="not_expanded_formular.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62040i893E0A9F58FF2D0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="not_expanded_formular.png" alt="not_expanded_formular.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But after clicking on the yellow marked arrow, is seems as if a blank line follows the text:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="expanded_formular.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62041i102EE1EA65CDFBF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="expanded_formular.png" alt="expanded_formular.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 05:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757996#M239298</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-29T05:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757997#M239299</link>
      <description>&lt;P&gt;Could the ancient option LINESIZE somehow be influencing PROC PRINT before contents gets passed to the ODS EXCEL facility?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 05:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/757997#M239299</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-07-29T05:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758034#M239316</link>
      <description>&lt;P&gt;I can't test now, but I'd be astounded as ODS normally ignores this option.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 10:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758034#M239316</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-29T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758045#M239327</link>
      <description>&lt;P&gt;Or calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; . She might have some idea.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 11:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758045#M239327</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-07-29T11:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758093#M239341</link>
      <description>Hi: &lt;BR /&gt;The LINESIZE option would not be having an impact on the ODS EXCEL output. PAGESIZE and LINESIZE are listing only options. I don't observe the same issue when I run a test using SAS 9.4M7, so my recommendation is that the original poster should open a track with Tech Support.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 29 Jul 2021 14:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758093#M239341</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-07-29T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758291#M239408</link>
      <description>&lt;P&gt;I bother the Tech Support guys often enough with actual defects or issues. The behaviour here clearly seems linked to my out-of-date version (still borken in M5 according to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;, fixed in M7 according to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;, and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;an &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;must have been on a recent version too). Thank you all!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 22:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758291#M239408</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-29T22:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758363#M239445</link>
      <description>I am using SAS University Edition ,it should be M6 .</description>
      <pubDate>Fri, 30 Jul 2021 11:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/758363#M239445</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-07-30T11:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/762743#M241519</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to bring it up.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe style "cellwidth="&amp;nbsp; could help you .&lt;/P&gt;
&lt;P&gt;P.S. I am using SAS9.4M4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='c:\temp\reports.xlsx' style=seaside ;
data T ;
  format X $256.;
  X='Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.';
proc report data=t nowd ;
define x/display  style(column)={cellwidth=100cm} ;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1629428833222.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62758i5924FBA8A0791D92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1629428833222.png" alt="Ksharp_0-1629428833222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 03:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/762743#M241519</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-08-20T03:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/768631#M243806</link>
      <description>&lt;P&gt;I'm running M6, and couldn't get it to work when writing a column called Name to Excel.&lt;/P&gt;&lt;P&gt;Name is my SAS field created by concatenating a person's First, Middle and Last Name fields, using CATX function to insert a space between each name. Excel would ALWAYS insert a "line-break" character between either first-and-middle or middle-and-last name! Ugh!&lt;/P&gt;&lt;P&gt;What worked for me was to change the space within " " to a non-breaking-space char (Alt-0160) as the delimiter to CATX function. Luckily, Excel enforces the non-breaking-space character.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;name = catx("&amp;nbsp;",FIRST, MIDDLE, LAST);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Sep 2021 19:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/768631#M243806</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2021-09-20T19:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid line breaks when exporting long text to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/768699#M243844</link>
      <description>&lt;P&gt;I'd rather avoid special characters. But thanks for the tip. M7 is supposed to come soon.... has been for a while now.... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 04:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoid-line-breaks-when-exporting-long-text-to-Excel/m-p/768699#M243844</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-21T04:27:14Z</dc:date>
    </item>
  </channel>
</rss>

