<?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 CAT, CATT, CATX, TRIM in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14549#M2343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, Of course data_null_ is correct .. as he virtually always is!&amp;nbsp; However, the other responses were also correct.&amp;nbsp; For the fun of it I ran a one trial test on 1 million identical records.&amp;nbsp; I stopped at one test as I happened to like the results: my proposed method came in first (cpu: 1.01 seconds), data_null_'s second (cpu: 1.04 seconds), and your suggestion third (cpu: 1.14 seconds).&amp;nbsp; Of course, on repeated tests, I would guess that any of the methods could come in at any position.&amp;nbsp; Your and datanull's methods are definitely easier to type and I'd gladly award both of you correct answers if I could, but it wasn't my post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 18:01:43 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-09-22T18:01:43Z</dc:date>
    <item>
      <title>CAT, CATT, CATX, TRIM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14543#M2337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 4 variables that I am trying to combine into one but each thing I try is not giving me the result I want.&amp;nbsp; Here are my entries 20,1,6312468,1 and I want to combine them to get 2016312468 but every time I try something I get 20 space 1 space 6312468 space 1.&amp;nbsp; I have tried cat, catt, catx and trim each one then use !! to combine and each time it returns the spaces.&amp;nbsp; Any thoughts?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14543#M2337</guid>
      <dc:creator>1800bigk</dc:creator>
      <dc:date>2011-09-22T13:33:21Z</dc:date>
    </item>
    <item>
      <title>CAT, CATT, CATX, TRIM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14544#M2338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; would compress keeping your numeric values not work?&lt;/P&gt;&lt;P&gt;compress(column,'0123456789','k')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14544#M2338</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2011-09-22T13:41:00Z</dc:date>
    </item>
    <item>
      <title>CAT, CATT, CATX, TRIM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14545#M2339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use strip rather than trim.&amp;nbsp; E.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; w=20;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; y=6312468;&lt;/P&gt;&lt;P&gt;&amp;nbsp; z=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; want=cat(strip(w),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strip(x),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strip(y),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strip(z));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 13:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14545#M2339</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-22T13:50:59Z</dc:date>
    </item>
    <item>
      <title>CAT, CATT, CATX, TRIM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14546#M2340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Both of these work thanks for the fast response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14546#M2340</guid>
      <dc:creator>1800bigk</dc:creator>
      <dc:date>2011-09-22T14:03:37Z</dc:date>
    </item>
    <item>
      <title>CAT, CATT, CATX, TRIM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14547#M2341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about CAT&lt;STRONG&gt;S&lt;/STRONG&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14547#M2341</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-09-22T14:17:39Z</dc:date>
    </item>
    <item>
      <title>CAT, CATT, CATX, TRIM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14548#M2342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data_null_; is providing the &lt;STRONG&gt;correct answer&lt;/STRONG&gt;, because CATS() performs the STRIP() and the concatenation&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt; want = cats( of w x y z&amp;nbsp; );&lt;/P&gt;&lt;P&gt;(not even those commas needed when the list is preceeded with OF )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 16:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14548#M2342</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-09-22T16:36:47Z</dc:date>
    </item>
    <item>
      <title>CAT, CATT, CATX, TRIM</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14549#M2343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, Of course data_null_ is correct .. as he virtually always is!&amp;nbsp; However, the other responses were also correct.&amp;nbsp; For the fun of it I ran a one trial test on 1 million identical records.&amp;nbsp; I stopped at one test as I happened to like the results: my proposed method came in first (cpu: 1.01 seconds), data_null_'s second (cpu: 1.04 seconds), and your suggestion third (cpu: 1.14 seconds).&amp;nbsp; Of course, on repeated tests, I would guess that any of the methods could come in at any position.&amp;nbsp; Your and datanull's methods are definitely easier to type and I'd gladly award both of you correct answers if I could, but it wasn't my post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 18:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CAT-CATT-CATX-TRIM/m-p/14549#M2343</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-22T18:01:43Z</dc:date>
    </item>
  </channel>
</rss>

