<?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: concatenate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50049#M13599</link>
    <description>You are using the COMPRESS function, yet you don't want to compress?  Consider using one of the SAS-supplied CAT-related functions, instead.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Mon, 01 Feb 2010 15:39:20 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-02-01T15:39:20Z</dc:date>
    <item>
      <title>concatenate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50048#M13598</link>
      <description>mt = 050;&lt;BR /&gt;
PP = '20+';&lt;BR /&gt;
U='&amp;gt;90';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
xxx=compress(mt||'DAYS '||PP||U);&lt;BR /&gt;
&lt;BR /&gt;
I'm getting xxx value as '050DAYS20+&amp;gt;90'&lt;BR /&gt;
&lt;BR /&gt;
I want it '050DAYS 20+&amp;gt;90' A space after "DAYS"&lt;BR /&gt;
&lt;BR /&gt;
what should i do?</description>
      <pubDate>Mon, 01 Feb 2010 14:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50048#M13598</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-01T14:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50049#M13599</link>
      <description>You are using the COMPRESS function, yet you don't want to compress?  Consider using one of the SAS-supplied CAT-related functions, instead.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 01 Feb 2010 15:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50049#M13599</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-02-01T15:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50050#M13600</link>
      <description>Insted of compress function. Use TRIM function, then you will get desire output</description>
      <pubDate>Mon, 01 Feb 2010 18:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50050#M13600</guid>
      <dc:creator>DPraba79</dc:creator>
      <dc:date>2010-02-01T18:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50051#M13601</link>
      <description>Try this&lt;BR /&gt;
&lt;BR /&gt;
xxx=compress(mt||'DAYS'||' '||PP||U);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Venky.</description>
      <pubDate>Wed, 03 Feb 2010 05:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50051#M13601</guid>
      <dc:creator>venkatesh</dc:creator>
      <dc:date>2010-02-03T05:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50052#M13602</link>
      <description>You're having trouble to understand how compress works.&lt;BR /&gt;
&lt;BR /&gt;
Compress, by default will remove blank chars from its argument, or any other char you may specify as a second argument.&lt;BR /&gt;
&lt;BR /&gt;
Please READ the help doc here: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000212246.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000212246.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
(venkatesh this goes for you also, unless you misunderstood the problem)&lt;BR /&gt;
&lt;BR /&gt;
Now, there is a multitude of functions and operators that will accomplish what you need.&lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
xxx=strip(MT)!!'DAYS '!!strip(PP)!!strip(U);&lt;BR /&gt;
xxx=cats(MT,catx(' ','DAYS',PP),U);&lt;BR /&gt;
xxx=strip(MT)!!'DAYS '!!cats(PP,U);&lt;BR /&gt;
xxx=trim(left(MT))!!'DAYS '!!trim(left(PP))!!trim(left(U));&lt;BR /&gt;
...&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Please spend some time reading the documentation of this string manipulation functions:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000212224.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000212224.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000212226.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a000212226.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002295689.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002295689.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002256540.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002256540.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002257076.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002257076.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Wed, 03 Feb 2010 08:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/concatenate/m-p/50052#M13602</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2010-02-03T08:30:33Z</dc:date>
    </item>
  </channel>
</rss>

