<?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: Appending one variables values onto another in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567427#M11511</link>
    <description>&lt;P&gt;Is there a way that I can input a hyphen or an underscore in between the time_frame and var1 values using the cats function?&lt;/P&gt;&lt;P&gt;Such as 6months_651?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 19:27:58 GMT</pubDate>
    <dc:creator>bignate1030</dc:creator>
    <dc:date>2019-06-19T19:27:58Z</dc:date>
    <item>
      <title>Appending one variables values onto another</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567413#M11505</link>
      <description>&lt;P&gt;I simply want to copy the values from one variable onto the end of the values from another variable. I have some sample data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;time_frame&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var1&lt;/P&gt;&lt;P&gt;100days&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 293&lt;/P&gt;&lt;P&gt;6months&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 651&lt;/P&gt;&lt;P&gt;1year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;307&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want the end result to be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;time_frame&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var1&lt;/P&gt;&lt;P&gt;100days293&amp;nbsp; &amp;nbsp; &amp;nbsp;293&lt;/P&gt;&lt;P&gt;6months651&amp;nbsp; &amp;nbsp; &amp;nbsp;651&lt;/P&gt;&lt;P&gt;1year307&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 307&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567413#M11505</guid>
      <dc:creator>bignate1030</dc:creator>
      <dc:date>2019-06-19T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Appending one variables values onto another</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567418#M11507</link>
      <description>&lt;P&gt;Look at the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n1e21rr6al5m2nn19r1fat5qxwrt.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;cats()&lt;/A&gt; function.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567418#M11507</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-19T19:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Appending one variables values onto another</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567427#M11511</link>
      <description>&lt;P&gt;Is there a way that I can input a hyphen or an underscore in between the time_frame and var1 values using the cats function?&lt;/P&gt;&lt;P&gt;Such as 6months_651?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567427#M11511</guid>
      <dc:creator>bignate1030</dc:creator>
      <dc:date>2019-06-19T19:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Appending one variables values onto another</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567435#M11512</link>
      <description>&lt;P&gt;If you want to insert some kind of delimiter, look at the catx() function. It does exactly that.&lt;/P&gt;
&lt;P&gt;You can also do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cats(string1,'_',string2)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567435#M11512</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-19T19:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Appending one variables values onto another</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567436#M11513</link>
      <description>&lt;P&gt;CATX() instead of CATT().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278522"&gt;@bignate1030&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way that I can input a hyphen or an underscore in between the time_frame and var1 values using the cats function?&lt;/P&gt;
&lt;P&gt;Such as 6months_651?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567436#M11513</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-19T19:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Appending one variables values onto another</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567450#M11515</link>
      <description>&lt;P&gt;What is the defined length of your Time_frame variable? Is it going to be long enough to add on the entire value of var1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the defined length is&amp;nbsp;less than 10&amp;nbsp;then you can't add anything onto 100days (7 characters) and would need to create a new variable as adding 3 more characters means you need 10 characters to hold the value.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 20:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Appending-one-variables-values-onto-another/m-p/567450#M11515</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-19T20:17:08Z</dc:date>
    </item>
  </channel>
</rss>

