<?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: cats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880391#M347861</link>
    <description>&lt;P&gt;The CATX function will also remove leading and trailing blanks. The CAT function keeps them.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 12:03:45 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-06-13T12:03:45Z</dc:date>
    <item>
      <title>cats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880375#M347854</link>
      <description>&lt;PRE&gt;ead=cats('z',level_1,level_2,level_4,level_6);&lt;/PRE&gt;
&lt;P&gt;what does this do?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 11:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880375#M347854</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-06-13T11:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: cats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880377#M347856</link>
      <description>&lt;P&gt;Please consult the documentation:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n1e21rr6al5m2nn19r1fat5qxwrt.htm" target="_blank" rel="noopener"&gt;CATS Function&lt;/A&gt;&amp;nbsp;and come back if details are unclear to you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 11:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880377#M347856</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-13T11:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: cats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880380#M347858</link>
      <description>&lt;P&gt;It concatenates the string 'z' with the strings listed in the columns that are specified as arguments. It removes leading and trailing blanks before concatenation, I think.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 11:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880380#M347858</guid>
      <dc:creator>CalebSindi</dc:creator>
      <dc:date>2023-06-13T11:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: cats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880385#M347859</link>
      <description>In SAS, the code ead=cats('z', level_1, level_2, level_4, level_6); is using the CATS function to concatenate several variables and a string into a single character variable called "ead".&lt;BR /&gt;&lt;BR /&gt;Here's what each component of the code does:&lt;BR /&gt;&lt;BR /&gt;cats('z', level_1, level_2, level_4, level_6): This is the CATS function, which concatenates multiple arguments into a single character value. In this case, it concatenates the string 'z' with the values of the variables level_1, level_2, level_4, and level_6.&lt;BR /&gt;&lt;BR /&gt;ead=: This assigns the concatenated value to the character variable "ead".&lt;BR /&gt;&lt;BR /&gt;The resulting value of "ead" will be a string that combines the values of the variables level_1, level_2, level_4, and level_6, with 'z' appended at the beginning.&lt;BR /&gt;&lt;BR /&gt;For example, if level_1 = 'A', level_2 = 'B', level_4 = 'C', and level_6 = 'D', the resulting value of "ead" would be 'zABCD'. The values of the variables are concatenated together, with 'z' added at the beginning.&lt;BR /&gt;&lt;BR /&gt;Note that the CATS function removes leading and trailing spaces from the values it concatenates. If you want to preserve the spaces, you can use the CATX function instead.</description>
      <pubDate>Tue, 13 Jun 2023 11:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880385#M347859</guid>
      <dc:creator>MaggyShiks</dc:creator>
      <dc:date>2023-06-13T11:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: cats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880391#M347861</link>
      <description>&lt;P&gt;The CATX function will also remove leading and trailing blanks. The CAT function keeps them.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 12:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880391#M347861</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-13T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: cats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880423#M347872</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;ead=cats('z',level_1,level_2,level_4,level_6);&lt;/PRE&gt;
&lt;P&gt;what does this do?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;Pedantic mode: on&amp;gt;&lt;/P&gt;
&lt;P&gt;Since it is not part of a data step or other procedure that allows such code it does nothing and probably throws an error.&lt;/P&gt;
&lt;P&gt;&amp;lt;/Pedantic mode: off&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried placing the cursor in the SAS editor on the function, such as CATS, and pressing F1? Does anything happen?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 14:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cats/m-p/880423#M347872</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-13T14:36:58Z</dc:date>
    </item>
  </channel>
</rss>

