<?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 create a variable that multiply two categorical variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-a-variable-that-multiply-two-categorical-variables/m-p/304148#M64710</link>
    <description>&lt;P&gt;I have the following dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id &amp;nbsp; &amp;nbsp;out1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out2
1 &amp;nbsp; &amp;nbsp; a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b
2 &amp;nbsp; &amp;nbsp;c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to create a variable out3 that multiple the categorical variables into1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id &amp;nbsp; &amp;nbsp;out1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out2     out3
1 &amp;nbsp; &amp;nbsp; a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b       a.b
2 &amp;nbsp; &amp;nbsp;c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d      c.d&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Oct 2016 17:08:01 GMT</pubDate>
    <dc:creator>lillymaginta</dc:creator>
    <dc:date>2016-10-12T17:08:01Z</dc:date>
    <item>
      <title>create a variable that multiply two categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-variable-that-multiply-two-categorical-variables/m-p/304148#M64710</link>
      <description>&lt;P&gt;I have the following dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id &amp;nbsp; &amp;nbsp;out1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out2
1 &amp;nbsp; &amp;nbsp; a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b
2 &amp;nbsp; &amp;nbsp;c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to create a variable out3 that multiple the categorical variables into1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id &amp;nbsp; &amp;nbsp;out1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out2     out3
1 &amp;nbsp; &amp;nbsp; a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b       a.b
2 &amp;nbsp; &amp;nbsp;c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d      c.d&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2016 17:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-variable-that-multiply-two-categorical-variables/m-p/304148#M64710</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-10-12T17:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: create a variable that multiply two categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-variable-that-multiply-two-categorical-variables/m-p/304150#M64711</link>
      <description>&lt;P&gt;Do you mean something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;out3 = catx('.',out1, out2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or do expect a numeric result?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 17:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-variable-that-multiply-two-categorical-variables/m-p/304150#M64711</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-12T17:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: create a variable that multiply two categorical variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-a-variable-that-multiply-two-categorical-variables/m-p/304151#M64712</link>
      <description>&lt;P&gt;Yes. Categorical, Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 17:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-a-variable-that-multiply-two-categorical-variables/m-p/304151#M64712</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-10-12T17:19:50Z</dc:date>
    </item>
  </channel>
</rss>

