<?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: delete blank in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127970#M10648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be easier to correct the problem earlier in the process, rather than after the string has been created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code has created a macro variable that contains leading and trailing blanks, such as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63.6%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get rid of the leading and trailing blanks before plugging that into the longer string.&amp;nbsp; One easy way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let macrovar = &amp;amp;macrovar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then plug it in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let string = At &amp;amp;macrovar, the labour-force participation rate is at its lowest level;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 13:27:10 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2013-10-30T13:27:10Z</dc:date>
    <item>
      <title>delete blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127965#M10643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;i have a word like this "At&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63.6%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , the labour-force participation rate is at its lowest level",&lt;/P&gt;&lt;P&gt;but I want to get the result like this "At 63.6%, the labour-force participation rate is at its lowest level",&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 03:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127965#M10643</guid>
      <dc:creator>oujiang</dc:creator>
      <dc:date>2013-10-30T03:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: delete blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127966#M10644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the COMPBL function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 03:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127966#M10644</guid>
      <dc:creator>JerryLeBreton</dc:creator>
      <dc:date>2013-10-30T03:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: delete blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127967#M10645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not work,have a error !&lt;/P&gt;&lt;P&gt;ERROR: The function COMPBL referenced by the %SYSFUNC or %QSYSFUNC macro function has too many&amp;nbsp; arguments.&lt;/P&gt;&lt;P class="ordinary-output target-output"&gt;&lt;SPAN&gt;Will not be&lt;/SPAN&gt;&lt;SPAN&gt; the "%"&lt;/SPAN&gt;&lt;SPAN class="high-light-bg"&gt; problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 03:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127967#M10645</guid>
      <dc:creator>oujiang</dc:creator>
      <dc:date>2013-10-30T03:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: delete blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127968#M10646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah yes, then to get rid of the space between % and ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; tranwrd(compbl(string),&amp;nbsp; " ,",&amp;nbsp; ",")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 03:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127968#M10646</guid>
      <dc:creator>JerryLeBreton</dc:creator>
      <dc:date>2013-10-30T03:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: delete blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127969#M10647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your are doing this in a macro, you will need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let want = %sysfunc(tranwrd(%qsysfunc(compbl(%quote(&amp;amp;have))), %str(% ,), %str(%,)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 03:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127969#M10647</guid>
      <dc:creator>JerryLeBreton</dc:creator>
      <dc:date>2013-10-30T03:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: delete blank</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127970#M10648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be easier to correct the problem earlier in the process, rather than after the string has been created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code has created a macro variable that contains leading and trailing blanks, such as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63.6%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get rid of the leading and trailing blanks before plugging that into the longer string.&amp;nbsp; One easy way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let macrovar = &amp;amp;macrovar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then plug it in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let string = At &amp;amp;macrovar, the labour-force participation rate is at its lowest level;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 13:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/delete-blank/m-p/127970#M10648</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-10-30T13:27:10Z</dc:date>
    </item>
  </channel>
</rss>

