<?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 Trim Spaces in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trim-Spaces/m-p/438586#M109370</link>
    <description>&lt;P&gt;I've a SAS program where it reads a SAS dataset and convert it to the XML file. However, I observed that there is an extra space is appended with few of the variables in the output XML file and I want to remove the extra spaces as&amp;nbsp;highlighted in yellow below. Since the values are coming from the dataset, I think I've apply trim function to the variables 'dateRenewal' and 'clause_Base' but I'm not certain how to apply. Appreciate if someone of you guide me here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Snippet of SAS program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put '&amp;lt;dateRenewal&amp;gt;' dateRenewal '&amp;lt;/dateRenewal&amp;gt;';
put '&amp;lt;clauseCode&amp;gt;' clause_Base '&amp;lt;/clauseCode&amp;gt;';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Snippet of Output XML file:&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="Blank Spaces.PNG" style="width: 337px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18692i68D044EFC6D62EEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Blank Spaces.PNG" alt="Blank Spaces.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2018 09:41:17 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-02-20T09:41:17Z</dc:date>
    <item>
      <title>Trim Spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trim-Spaces/m-p/438586#M109370</link>
      <description>&lt;P&gt;I've a SAS program where it reads a SAS dataset and convert it to the XML file. However, I observed that there is an extra space is appended with few of the variables in the output XML file and I want to remove the extra spaces as&amp;nbsp;highlighted in yellow below. Since the values are coming from the dataset, I think I've apply trim function to the variables 'dateRenewal' and 'clause_Base' but I'm not certain how to apply. Appreciate if someone of you guide me here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Snippet of SAS program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put '&amp;lt;dateRenewal&amp;gt;' dateRenewal '&amp;lt;/dateRenewal&amp;gt;';
put '&amp;lt;clauseCode&amp;gt;' clause_Base '&amp;lt;/clauseCode&amp;gt;';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Snippet of Output XML file:&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="Blank Spaces.PNG" style="width: 337px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18692i68D044EFC6D62EEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Blank Spaces.PNG" alt="Blank Spaces.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trim-Spaces/m-p/438586#M109370</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-02-20T09:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trim Spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trim-Spaces/m-p/438588#M109371</link>
      <description>&lt;P&gt;A simple search:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/How-to-remove-trailing-blanks-when-PUT-statement-resolves-for/m-p/190655/highlight/true#M7261" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/How-to-remove-trailing-blanks-when-PUT-statement-resolves-for/m-p/190655/highlight/true#M7261&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trim-Spaces/m-p/438588#M109371</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-20T09:50:38Z</dc:date>
    </item>
  </channel>
</rss>

