<?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: CATT function in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163767#M42470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you have it. If you don't want either leading or trailing spaces then use CATS, if you don't want leading or trailing spaces from the components of the concatenation but want to add a delimiter between the pieces then use CATX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 20:29:11 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-12-04T20:29:11Z</dc:date>
    <item>
      <title>CATT function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163764#M42467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone ecplain How the CATT is working???&lt;/P&gt;&lt;P&gt;i dint understand what is given in the Documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following example shows how the CATT function concatenates strings. &lt;BR /&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; x='&amp;nbsp; The&amp;nbsp;&amp;nbsp; Olym'; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; y='pic Arts Festi';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; z='&amp;nbsp; val includes works by D&amp;nbsp; ';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; a='ale Chihuly.';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; result=catt(x,y,z,a);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put result $char.; &lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following line is written to the SAS log: &lt;BR /&gt;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+----7&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The&amp;nbsp;&amp;nbsp; Olympic Arts Festi&amp;nbsp; val includes works by Dale Chihuly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 17:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163764#M42467</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-12-04T17:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: CATT function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163765#M42468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CATT only removes TRAILING blanks. So the double spaces in X are not affected by the concatenation. Likewise the space at the start (a leading blank) of Z remains leaving the "Festi val" in the result. But the space after D in Z is removed so the result is Dale ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 17:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163765#M42468</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-12-04T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: CATT function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163766#M42469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get your point.&lt;/P&gt;&lt;P&gt;if in this example if&amp;nbsp; i=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;x=catt(x,' t_'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;,left(i),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;' d_'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;,left(i));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I am getting space &lt;STRONG&gt;t_1SPACEd_1&lt;/STRONG&gt; since a leading space is introduced fot t_ and d_????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;if that leading space was not introduced i would have got t_1d_1t_2d_2 etc etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Is my understanding of this right????????&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 18:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163766#M42469</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-12-04T18:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: CATT function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163767#M42470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you have it. If you don't want either leading or trailing spaces then use CATS, if you don't want leading or trailing spaces from the components of the concatenation but want to add a delimiter between the pieces then use CATX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 20:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163767#M42470</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-12-04T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: CATT function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163768#M42471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also in the first iteration the value of X is a SPACE.&lt;/P&gt;&lt;P&gt;So what happens there? with CATT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 20:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163768#M42471</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-12-04T20:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: CATT function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163769#M42472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the only character is a space, it is both a leading and trailing space. Since it is a leading space, CATT removes it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 23:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CATT-function/m-p/163769#M42472</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-12-04T23:22:38Z</dc:date>
    </item>
  </channel>
</rss>

