<?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 ODS Excel involuntary concatenation in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571808#M22962</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ODS Excel to output a data table and I've noticed that the output is being altered from the original&amp;nbsp;by eliminating spaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="\\hne_crms\hsra\RLafond\Quality\QIP\test3\&amp;amp;NAME._&amp;amp;LOB._QIP_Roster_&amp;amp;reportdate..xlsx";

ods excel options(sheet_name="&amp;amp;Name Roster &amp;amp;Month &amp;amp;Year");

PROC PRINT DATA = &amp;amp;NAME._&amp;amp;LOB._STEP2 NOOBS;
RUN;

ODS excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;Source: VBC Group B&lt;/P&gt;&lt;P&gt;Output: VBC GroupB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source: Adult BMI Assessment&lt;/P&gt;&lt;P&gt;Output: Adult BMIAssessment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source: Appropriate Testing for Children with Pharyngitis&lt;/P&gt;&lt;P&gt;Output: Appropriate Testingfor Children withPharyngitis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks almost like some sort of formatting being done to replicate wrapping in Excel. Any idea why this is happening and how I can stop it? I've included an image showing what it looks like in Excel:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.GIF" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30840i57930090DDDA0559/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.GIF" alt="Capture.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2019 15:20:03 GMT</pubDate>
    <dc:creator>rlafond</dc:creator>
    <dc:date>2019-07-08T15:20:03Z</dc:date>
    <item>
      <title>ODS Excel involuntary concatenation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571808#M22962</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using ODS Excel to output a data table and I've noticed that the output is being altered from the original&amp;nbsp;by eliminating spaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="\\hne_crms\hsra\RLafond\Quality\QIP\test3\&amp;amp;NAME._&amp;amp;LOB._QIP_Roster_&amp;amp;reportdate..xlsx";

ods excel options(sheet_name="&amp;amp;Name Roster &amp;amp;Month &amp;amp;Year");

PROC PRINT DATA = &amp;amp;NAME._&amp;amp;LOB._STEP2 NOOBS;
RUN;

ODS excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;Source: VBC Group B&lt;/P&gt;&lt;P&gt;Output: VBC GroupB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source: Adult BMI Assessment&lt;/P&gt;&lt;P&gt;Output: Adult BMIAssessment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source: Appropriate Testing for Children with Pharyngitis&lt;/P&gt;&lt;P&gt;Output: Appropriate Testingfor Children withPharyngitis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks almost like some sort of formatting being done to replicate wrapping in Excel. Any idea why this is happening and how I can stop it? I've included an image showing what it looks like in Excel:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.GIF" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30840i57930090DDDA0559/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.GIF" alt="Capture.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 15:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571808#M22962</guid>
      <dc:creator>rlafond</dc:creator>
      <dc:date>2019-07-08T15:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel involuntary concatenation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571818#M22963</link>
      <description>&lt;P&gt;You should include the code used to create the output including&amp;nbsp;the ODS Excel statement to show options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since many procedures can provide output we kind of need to know which specific procedure and options were involved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you need to know that the message windows on this forum&amp;nbsp;will also reformat text. So you need to be very careful what is posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual plain text such as code, log and raw data are best posted into code boxes opened with either the forums {I} or "running man" icons to prevent such reformatting as leading space removal, multiple space compression and some HTML code insertion/replacements.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 15:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571818#M22963</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-08T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel involuntary concatenation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571819#M22964</link>
      <description>&lt;P&gt;Updated original post with relevant code.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 15:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571819#M22964</guid>
      <dc:creator>rlafond</dc:creator>
      <dc:date>2019-07-08T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel involuntary concatenation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571846#M22965</link>
      <description>Pretty sure you have a line return in there, which is recognized in an Excel cell, but will not be recognized in a tab name. I'm also fairly certain that this can't be done in a tab name manually either. You can however, replace the line return with a space instead and that will cause it to have the space correctly. &lt;BR /&gt;&lt;BR /&gt;I think the character is "0A"x and you want to replace that with a single space instead. You can try using TRANWRD for that.</description>
      <pubDate>Mon, 08 Jul 2019 16:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571846#M22965</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-08T16:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel involuntary concatenation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571906#M22967</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I find that if I make the cell wide enough that ODS EXCEL doesn't automatically wrap the line:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="long_string_excel_wide_enough.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30848i4045544C0D275AB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="long_string_excel_wide_enough.png" alt="long_string_excel_wide_enough.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the number of columns you have can also impact the wrapping behavior. But adjusting width is a place to start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 21:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/571906#M22967</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-07-08T21:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel involuntary concatenation</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/573057#M22980</link>
      <description>&lt;P&gt;So I ended up researching line returns and found that using the ODS Excel option&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;flow = 'tables'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Fixed the return issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for&amp;nbsp;the direction!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-involuntary-concatenation/m-p/573057#M22980</guid>
      <dc:creator>rlafond</dc:creator>
      <dc:date>2019-07-12T12:13:01Z</dc:date>
    </item>
  </channel>
</rss>

