<?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: Creating a string from numeric variable and text variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838962#M36307</link>
    <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133482"&gt;@lioradam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Glad to see that Paige Miller's solution worked for you. Then it would be fair and help later readers if you marked his helpful reply as the accepted solution, not your own "thank you" post. Could you please change that? It's very easy: Select his post&amp;nbsp;as the solution after clicking&amp;nbsp;"Not the Solution" in the option menu (see icon below) of the current solution.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show_option_menu.png" style="width: 155px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76251i36C4FDE5CEDE7E4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="show_option_menu.png" alt="show_option_menu.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 12:49:22 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-10-17T12:49:22Z</dc:date>
    <item>
      <title>Creating a string from numeric variable and text variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838951#M36302</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to create a new variable which is a combination of a text variable and a numeric variable.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;The observation of the text variable is "abrt"&lt;/P&gt;&lt;P&gt;The observation of the first numeric variable is "03"&lt;/P&gt;&lt;P&gt;The observation of the second numeric variable is "2014"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want that the observation of the new variable will be "abrt032014".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the simplest code for that?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838951#M36302</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2022-10-17T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string from numeric variable and text variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838952#M36303</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133482"&gt;@lioradam&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am trying to create a new variable which is a combination of a text variable and a numeric variable.&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;The observation of the text variable is "abrt"&lt;/P&gt;
&lt;P&gt;The observation of the first numeric variable is "03"&lt;/P&gt;
&lt;P&gt;The observation of the second numeric variable is "2014"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you mean "the value of ..." ???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, here is data step code to use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length newvariable $ 20;
newvariable = cats(textvariable,firstnumericvariable,secondnumericvariable);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;probably also best to give the new variable a length, I gave it 20 characters, but you may need more or fewer, depending on your data.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838952#M36303</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-17T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string from numeric variable and text variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838957#M36304</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;This is the code I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838957#M36304</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2022-10-17T12:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string from numeric variable and text variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838961#M36306</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133482"&gt;@lioradam&lt;/a&gt;&amp;nbsp;you should not mark your own "Thank you" message as the correct answer. You should mark the correct answer as the correct answer.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838961#M36306</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-17T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string from numeric variable and text variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838962#M36307</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133482"&gt;@lioradam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Glad to see that Paige Miller's solution worked for you. Then it would be fair and help later readers if you marked his helpful reply as the accepted solution, not your own "thank you" post. Could you please change that? It's very easy: Select his post&amp;nbsp;as the solution after clicking&amp;nbsp;"Not the Solution" in the option menu (see icon below) of the current solution.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show_option_menu.png" style="width: 155px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76251i36C4FDE5CEDE7E4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="show_option_menu.png" alt="show_option_menu.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838962#M36307</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-10-17T12:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string from numeric variable and text variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838966#M36308</link>
      <description>&lt;P&gt;Sorry, I didn't notice that I marked the wrong message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it is corrected.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838966#M36308</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2022-10-17T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a string from numeric variable and text variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838968#M36309</link>
      <description>&lt;P&gt;Thank you for the explanation of how to&amp;nbsp;correct it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-string-from-numeric-variable-and-text-variable/m-p/838968#M36309</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2022-10-17T13:20:37Z</dc:date>
    </item>
  </channel>
</rss>

