<?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: Combining Columns in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74442#M21601</link>
    <description>I just worked it out. For anyones' future reference I used:&lt;BR /&gt;
&lt;BR /&gt;
TRIM(Column A)||' '||TRIM(Column B)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your response Scott.</description>
    <pubDate>Tue, 06 Oct 2009 06:17:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-10-06T06:17:07Z</dc:date>
    <item>
      <title>Combining Columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74440#M21599</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I've been looking through the help guide and I can't seem to find anything on merging the data in two columns together. What I am trying to do is attach the data in column B to that in column A so I only have one column..&lt;BR /&gt;
&lt;BR /&gt;
For example, at the moment my data is separated like:&lt;BR /&gt;
&lt;BR /&gt;
First Name (Column A)          Last Name (Column B)&lt;BR /&gt;
John                                     Smith&lt;BR /&gt;
&lt;BR /&gt;
But I want:&lt;BR /&gt;
&lt;BR /&gt;
Name (Column A)&lt;BR /&gt;
John Smith&lt;BR /&gt;
&lt;BR /&gt;
It's probably so simple and obvious but I can't for the life of me figure it out. I don't mind whether the advice is for the Query Builder or for code.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance!</description>
      <pubDate>Tue, 06 Oct 2009 04:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74440#M21599</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-06T04:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74441#M21600</link>
      <description>Have a look at using the CATT function (new with SAS 9) with assigning a new SAS CHARACTER type variable in a DATA step (after declaring a LENGTH statement for the new variable).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 06 Oct 2009 06:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74441#M21600</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-10-06T06:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74442#M21601</link>
      <description>I just worked it out. For anyones' future reference I used:&lt;BR /&gt;
&lt;BR /&gt;
TRIM(Column A)||' '||TRIM(Column B)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your response Scott.</description>
      <pubDate>Tue, 06 Oct 2009 06:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74442#M21601</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-06T06:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74443#M21602</link>
      <description>Glad to see you worked it out.  The CATX function in SAS 9 can simplify your code somewhat by handling the first variable TRIM (the second is unnecessary) and by coding your separator string as argument1 presented to CATX.&lt;BR /&gt;
&lt;BR /&gt;
Scott</description>
      <pubDate>Tue, 06 Oct 2009 07:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-Columns/m-p/74443#M21602</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-10-06T07:50:43Z</dc:date>
    </item>
  </channel>
</rss>

