<?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: Improper output when exporting to excel using ODS, spaces are removed. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446983#M20646</link>
    <description>&lt;P&gt;Thank you Suzanne, I was able to use the FLOW="tables" suboption and it worked.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 00:36:16 GMT</pubDate>
    <dc:creator>mandonium</dc:creator>
    <dc:date>2018-03-20T00:36:16Z</dc:date>
    <item>
      <title>Improper output when exporting to excel using ODS, spaces are removed.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446916#M20643</link>
      <description>&lt;P&gt;I'm exporting to an .xlsx file and spaces are being removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I get when I first open the file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 191px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19301i58C2D205B1B034DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I get when I remove the "Wrap Text" and expand-to-fit the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 563px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19302i4B19E0075D23BE0C/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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ae0302;
set ae0301;
if aeongyn='' then ls03chk1="Ongoing is missing";
else ls03chk1='';

if aeoutcm='' then ls03chk2="Outcome is missing";
else ls03chk2='';

if (ls03chk1='' or ls03chk2='') and aeongyn='No' and (aeoutcm='Not Resolved' or aeoutcm='Unknown') then ls03chk3="Outgoing and Outcome do not match";
if (ls03chk1='' or ls03chk2='') and aeongyn='Yes' and (aeoutcm='Resolved' or aeoutcm='Resolved with sequelae' or aeoutcm='Death') then ls03chk3="Outgoing and Outcome do not match";
else ls03chk3='';

if ls03chk2='' and (aeoutcm='Not Resolved' or aeoutcm='Unknown') and aeendate ne '' then ls03chk4="AE not resolved or unknown and end date is recorded";
if ls03chk2='' and (aeoutcm='Resolved' or aeoutcm='Resolved with sequelae' or aeoutcm='Death') and aeendate='' then ls03chk4="AE resolved or death and end date is missing";
else ls03chk4='';
run;

data ls0301; format ls03er $255.; set ae0302; by subjid;
	ls03er=catx(', ', ls03chk1, ls03chk2, ls03chk3, ls03chk4);
	drop ls03chk1 ls03chk2 ls03chk3 ls03chk4;
	label ls03er='Error Message'; run;

data list03; format ls03er; merge ds02 ls0301 (in=ls03); by subjid;
	if ls03=1; run;


%let rundate = %SYSFUNC(today(),yymmddn8.);
ods excel file="&amp;amp;path2\03 - ae outcomes_&amp;amp;rundate..xlsx"; 
ods excel options (embedded_titles='yes' sheet_name="Listing 03"); 
proc report data=list03; run;
ods excel close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 19:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446916#M20643</guid>
      <dc:creator>mandonium</dc:creator>
      <dc:date>2018-03-19T19:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Improper output when exporting to excel using ODS, spaces are removed.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446953#M20644</link>
      <description>&lt;P&gt;Can you provide a small example data set in the form of data step code that has this behavior. I can't duplicate this with pictures. Also which version of SAS are you running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 22:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446953#M20644</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-19T22:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Improper output when exporting to excel using ODS, spaces are removed.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446955#M20645</link>
      <description>&lt;P&gt;See &lt;A href="https://blogs.sas.com/content/sgf/2017/02/20/tips-for-using-the-ods-excel-destination/" target="_blank"&gt;Tips for Using the ODS Excel Destination&lt;/A&gt;, by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13736"&gt;@Chevell_sas&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Near the end of the post, Chevell explains how the ODS Excel destination adds a carriage-return line feed when the text wraps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have SAS 9.4 maintenance release 4, you can use the FLOW="TABLES" suboption.&amp;nbsp; If you are using an earlier version of SAS, specify a width so that the text doesn't wrap.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 22:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446955#M20645</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2018-03-19T22:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Improper output when exporting to excel using ODS, spaces are removed.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446983#M20646</link>
      <description>&lt;P&gt;Thank you Suzanne, I was able to use the FLOW="tables" suboption and it worked.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 00:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Improper-output-when-exporting-to-excel-using-ODS-spaces-are/m-p/446983#M20646</guid>
      <dc:creator>mandonium</dc:creator>
      <dc:date>2018-03-20T00:36:16Z</dc:date>
    </item>
  </channel>
</rss>

