<?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: ODS EXCEL SAS EG 8.2 how to remove space in the output when character variable is blank? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698298#M24650</link>
    <description>&lt;P&gt;Hi, Thanks for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my organization, SAS EG 8.2 is installed and SAS EG 7.1 is going to retired shortly and I need to compare the previous output generated in SAS EG 7.1 and current output generated in SAS EG 8.2 for reconciliation report and this extra blank in SAS EG 8.2 is troubling to reconcile the output as it won't match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the below snapshot of length of "siteid" from both&amp;nbsp;SAS EG 8.2 and SAS EG 7.1 which shows that SAS EG 8.2 is inserting blank value for character variable however it's not in SAS EG 7.1. Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS EG 8.2 output length:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1239_0-1605155500159.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51593i3A1D550F1250C634/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1239_0-1605155500159.png" alt="1239_0-1605155500159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor1239_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor1239_6" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;SAS EG 7.1 output length:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 246px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51591i30E70BEE51D8B6BA/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;DIV id="tinyMceEditor1239_7" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor1239_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 04:31:51 GMT</pubDate>
    <dc:creator>1239</dc:creator>
    <dc:date>2020-11-12T04:31:51Z</dc:date>
    <item>
      <title>ODS EXCEL SAS EG 8.2 how to remove space in the output when character variable is blank?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698144#M24645</link>
      <description>&lt;P&gt;how to remove space in the output when character variable is blank using ODS EXCEL? I have provided the below sample code and attached excel output file for your quick reference. Kindly note that formula used in "Column C" from test1.xslx file shows that "siteid" has single space inserted but I want to remove this. I am looking for a solution using ODS EXCEL in SAS EG 8.2.&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="1239_0-1605102083917.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51567iCF8F0176EF561A41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1239_0-1605102083917.png" alt="1239_0-1605102083917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  length SITEID $5 SUBJID $20 ;
  infile cards dsd truncover ;
  input siteid subjid ;

cards;
,102-002-001
,102-008-002
,102-008-008
,102-02-002
;
run;

ods excel file="c:\temp\test1.xlsx" ;
proc print data=have noobs label;
run;
ods excel close ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 14:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698144#M24645</guid>
      <dc:creator>1239</dc:creator>
      <dc:date>2020-11-11T14:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL SAS EG 8.2 how to remove space in the output when character variable is blank?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698253#M24649</link>
      <description>Hi:&lt;BR /&gt;  Enterprise Guide is not impacting your results one way or the other. You have defined SITEID as character with a length of $5. That means when SITEID is missing (as it is on all 5 rows), SAS represents a missing character variable value with 1 space. SAS represents a missing numeric variable with 1 period or .&lt;BR /&gt;&lt;BR /&gt;  Your SITEID is missing on all 5 rows. SAS represents that with 1 blank. That is the definition of a missing character variable.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 12 Nov 2020 00:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698253#M24649</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-12T00:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL SAS EG 8.2 how to remove space in the output when character variable is blank?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698298#M24650</link>
      <description>&lt;P&gt;Hi, Thanks for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my organization, SAS EG 8.2 is installed and SAS EG 7.1 is going to retired shortly and I need to compare the previous output generated in SAS EG 7.1 and current output generated in SAS EG 8.2 for reconciliation report and this extra blank in SAS EG 8.2 is troubling to reconcile the output as it won't match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the below snapshot of length of "siteid" from both&amp;nbsp;SAS EG 8.2 and SAS EG 7.1 which shows that SAS EG 8.2 is inserting blank value for character variable however it's not in SAS EG 7.1. Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS EG 8.2 output length:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1239_0-1605155500159.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51593i3A1D550F1250C634/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1239_0-1605155500159.png" alt="1239_0-1605155500159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor1239_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor1239_6" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;SAS EG 7.1 output length:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 246px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51591i30E70BEE51D8B6BA/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;DIV id="tinyMceEditor1239_7" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor1239_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 04:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698298#M24650</guid>
      <dc:creator>1239</dc:creator>
      <dc:date>2020-11-12T04:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL SAS EG 8.2 how to remove space in the output when character variable is blank?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698521#M24656</link>
      <description>Hi:&lt;BR /&gt;  If you are finding differences in output when you quality check the SAME code with the SAME data running with EG 7.1 versus EG 8.2, you'll need to work with Tech Support. They will need to verify what version of SAS is running behind the scenes on the server that EG is submitting code to. If this is a defect or something for which there is a workaround, they will be able to find out from the developers. &lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 12 Nov 2020 20:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-SAS-EG-8-2-how-to-remove-space-in-the-output-when/m-p/698521#M24656</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-12T20:31:19Z</dc:date>
    </item>
  </channel>
</rss>

