<?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: How do I merge two columns together, and keep all of their observations? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631610#M187156</link>
    <description>&lt;P&gt;They are different formats... I don't mind changing them both to character formats but I also don't know how to do that.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2020 15:25:51 GMT</pubDate>
    <dc:creator>IvyMcKee</dc:creator>
    <dc:date>2020-03-12T15:25:51Z</dc:date>
    <item>
      <title>How do I merge two columns together, and keep all of their observations?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631607#M187153</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I have 2 columns that I want to merge into 1 column. Each column has 40,000 obs in it, all of which I want to keep. I want to merge RefPer and Quid into RefQuid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of Refper's obs are in this format: 201911, 201912 etc.&lt;/P&gt;&lt;P&gt;All of Quid's obs are in this format: Q12345.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the obs in RefQuid should all look something like this: 201911Q12345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several variations of the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA finalval&lt;/P&gt;&lt;P&gt;RefQuid = CATS(RefPer, Quid);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep recieving this error message: ERROR 22-322: Syntax error, expecting one of the following: A name, a quoted string, (, /. ;. _data_ _last_, _null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong? Is there another way to merge two columns together?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631607#M187153</guid>
      <dc:creator>IvyMcKee</dc:creator>
      <dc:date>2020-03-12T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two columns together, and keep all of their observations?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631608#M187154</link>
      <description>&lt;P&gt;Are the two variables character or numeric?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631608#M187154</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-03-12T15:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two columns together, and keep all of their observations?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631609#M187155</link>
      <description>&lt;P&gt;You are simply missing a semicolon to end the DATA statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631609#M187155</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-12T15:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two columns together, and keep all of their observations?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631610#M187156</link>
      <description>&lt;P&gt;They are different formats... I don't mind changing them both to character formats but I also don't know how to do that.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631610#M187156</guid>
      <dc:creator>IvyMcKee</dc:creator>
      <dc:date>2020-03-12T15:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I merge two columns together, and keep all of their observations?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631611#M187157</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA finalval; /*I added a semicolon here*/
Set input_dataset; /*this is missing*/
Length RefQuid  $10;
RefQuid = CATS(RefPer, Quid);

run;

 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298390"&gt;@IvyMcKee&lt;/a&gt;&amp;nbsp; Please see if the above makes sense to you&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-merge-two-columns-together-and-keep-all-of-their/m-p/631611#M187157</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-03-12T15:28:48Z</dc:date>
    </item>
  </channel>
</rss>

