<?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 Concatenate - Operand in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65919#M6618</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have 3 columns in a dataset I would like to combine into one column.  I used the CONCATENATE function, but kept getting an error that "CONCATENATE REQUIRES CHARACTER OPERANDS".  Below is part of the error log. Any advice regarding line 15?&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
***********************&lt;BR /&gt;
&lt;BR /&gt;
 /* Concatenate */&lt;BR /&gt;
15                     (Name=Event_Month || Operators || Queue_Name) AS Concatenate&lt;BR /&gt;
16               FROM WORK._2011_05_11_COMBINED_NCL_BY_QUEU AS t1&lt;BR /&gt;
17               GROUP BY t1.Site, t1.Event_Month, t1.OPERATORS, t1.QUEUE_NAME, (CALCULATED Concatenate);&lt;BR /&gt;
ERROR: Concatenation (||) requires character operands.&lt;BR /&gt;
ERROR: The following columns were not found in the contributing tables: Name.</description>
    <pubDate>Sat, 14 May 2011 00:45:54 GMT</pubDate>
    <dc:creator>jen123</dc:creator>
    <dc:date>2011-05-14T00:45:54Z</dc:date>
    <item>
      <title>Concatenate - Operand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65919#M6618</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have 3 columns in a dataset I would like to combine into one column.  I used the CONCATENATE function, but kept getting an error that "CONCATENATE REQUIRES CHARACTER OPERANDS".  Below is part of the error log. Any advice regarding line 15?&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
***********************&lt;BR /&gt;
&lt;BR /&gt;
 /* Concatenate */&lt;BR /&gt;
15                     (Name=Event_Month || Operators || Queue_Name) AS Concatenate&lt;BR /&gt;
16               FROM WORK._2011_05_11_COMBINED_NCL_BY_QUEU AS t1&lt;BR /&gt;
17               GROUP BY t1.Site, t1.Event_Month, t1.OPERATORS, t1.QUEUE_NAME, (CALCULATED Concatenate);&lt;BR /&gt;
ERROR: Concatenation (||) requires character operands.&lt;BR /&gt;
ERROR: The following columns were not found in the contributing tables: Name.</description>
      <pubDate>Sat, 14 May 2011 00:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65919#M6618</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2011-05-14T00:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate - Operand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65920#M6619</link>
      <description>I'm presuming event_month is a numeric variable.  You'll need to use the put command to convert it to character as in&lt;BR /&gt;
put(event_month,z2.0)||operators||queue_name</description>
      <pubDate>Sat, 14 May 2011 13:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65920#M6619</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-05-14T13:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate - Operand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65921#M6620</link>
      <description>THanks for the help!  I am a brand new user...with very little programming background.  &lt;BR /&gt;
&lt;BR /&gt;
Event_month is Date9.  &lt;BR /&gt;
&lt;BR /&gt;
I used your code below and the results are the name of the operators and queue name....no event month.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again!</description>
      <pubDate>Sat, 14 May 2011 18:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65921#M6620</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2011-05-14T18:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate - Operand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65922#M6621</link>
      <description>What format do you want the event_month to be in your concatenated string?  Just put that in the put command.&lt;BR /&gt;
&lt;BR /&gt;
put(event_month,yymmdd8.)||operators||queue_name</description>
      <pubDate>Sat, 14 May 2011 20:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65922#M6621</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-05-14T20:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate - Operand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65923#M6622</link>
      <description>That worked!  Thanks very much.</description>
      <pubDate>Sun, 15 May 2011 14:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65923#M6622</guid>
      <dc:creator>jen123</dc:creator>
      <dc:date>2011-05-15T14:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate - Operand</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65924#M6623</link>
      <description>Also, you may want to consider the CAT functions (there are several) depending on the desired result (SAS behavior, such as automatic trim) - CATT, CATS, CATX.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 21 May 2011 14:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Concatenate-Operand/m-p/65924#M6623</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-05-21T14:16:45Z</dc:date>
    </item>
  </channel>
</rss>

