<?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: Concatenate character variables with Parenthesis (use of CAT, CATS or CATX) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509133#M1740</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236770"&gt;@shanky_44&lt;/a&gt;your want is&amp;nbsp;&lt;STRONG&gt;19Jan190(23) &lt;/STRONG&gt;should it be&amp;nbsp;&lt;SPAN&gt;19Jan1990(23) if so then&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;I don't understand this part-&lt;STRONG&gt;19Jan190(23)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt; either&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 14:41:16 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-10-31T14:41:16Z</dc:date>
    <item>
      <title>Concatenate character variables with Parenthesis (use of CAT, CATS or CATX)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509106#M1735</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to concatenate two character variables in SAS and wishing to include Parenthesis with second variable. I am able to do that with the help of traditional || method but I was wondering if would do that with CAT series functions. I have converted numeric variable to character/string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data A;&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;Date $10. Devdate$&amp;nbsp; XY$;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;19JAN1990&amp;nbsp; 23 U/L&lt;/P&gt;&lt;P&gt;23Mar1987&amp;nbsp; 46 U/L&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wishing to see final result with anew variable named ABC and the value should be concatenation of Date and Devdate with parenthesis. Final result should be 19Jan1990(23) but with Cat series functions. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509106#M1735</guid>
      <dc:creator>shanky_44</dc:creator>
      <dc:date>2018-10-31T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate character variables with Parenthesis (use of CAT, CATS or CATX)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509108#M1736</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236770"&gt;@shanky_44&lt;/a&gt;your want is&amp;nbsp;&lt;SPAN&gt;19Jan190(23)&lt;/SPAN&gt; should it be&amp;nbsp;&lt;SPAN&gt;19Jan1990(23) if so then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Put the ( into quotes like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data A;
input
Date $10. Devdate$  XY$;
datalines;
19JAN1990  23 U/L
23Mar1987  46 U/L
;
run;
data A;
	set A;
	abc = compress(date||"("||Devdate||")");
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you really want&amp;nbsp;&lt;SPAN&gt;19Jan190(23)&lt;/SPAN&gt; you will need to remove ether the first or second 9 in the incoming date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509108#M1736</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-10-31T14:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate character variables with Parenthesis (use of CAT, CATS or CATX)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509117#M1738</link>
      <description>&lt;PRE&gt;data want;&lt;BR /&gt;length ABC $20;&lt;BR /&gt;set a;&lt;BR /&gt;ABC=CAT(strip(date),'(',strip(Devdate),')');&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Remove leading and trailing blanks before concatenation. CAT() function default length is 200, you can set the length if you don't want the default.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509117#M1738</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-31T14:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate character variables with Parenthesis (use of CAT, CATS or CATX)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509133#M1740</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236770"&gt;@shanky_44&lt;/a&gt;your want is&amp;nbsp;&lt;STRONG&gt;19Jan190(23) &lt;/STRONG&gt;should it be&amp;nbsp;&lt;SPAN&gt;19Jan1990(23) if so then&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;I don't understand this part-&lt;STRONG&gt;19Jan190(23)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt; either&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509133#M1740</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-31T14:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate character variables with Parenthesis (use of CAT, CATS or CATX)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509139#M1741</link>
      <description>&lt;P&gt;Sorry, that was a type error. I am wishing to get final result like&amp;nbsp;&lt;SPAN&gt;19Jan1990(23) which is concatenation&amp;nbsp;of&amp;nbsp; two variables. Thanks for your reply. It is working. Thanks once again!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509139#M1741</guid>
      <dc:creator>shanky_44</dc:creator>
      <dc:date>2018-10-31T14:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate character variables with Parenthesis (use of CAT, CATS or CATX)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509142#M1742</link>
      <description>&lt;P&gt;Thanks VDD!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Concatenate-character-variables-with-Parenthesis-use-of-CAT-CATS/m-p/509142#M1742</guid>
      <dc:creator>shanky_44</dc:creator>
      <dc:date>2018-10-31T14:53:51Z</dc:date>
    </item>
  </channel>
</rss>

