<?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: creating a variable using another categorical one in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creating-a-variable-using-another-categorical-one/m-p/308138#M66079</link>
    <description>&lt;P&gt;This might be the easiest way to say it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if name in : ('clozipine ', 'terazip ') then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's up to you whether you want to include the blank at the end of the compound name.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2016 14:02:09 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-10-30T14:02:09Z</dc:date>
    <item>
      <title>creating a variable using another categorical one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-a-variable-using-another-categorical-one/m-p/308131#M66074</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rx name
1 clozipine hyrochloride
2 clozipine
3 terazip
3 terazip hydrochloride
4 asipirin &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I know this is a simple question but I am trying to find the most efficient way to resolve it. I want to group id who have clozpine and terazip&amp;nbsp;togethe.&amp;nbsp;There are so many rxs&amp;nbsp;that would need to be grouped together, I was thinking about substr&amp;nbsp;but I got an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if substr, x, i, 1,7 in (clzpinee, terazip) then do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2016 10:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-a-variable-using-another-categorical-one/m-p/308131#M66074</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-10-30T10:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: creating a variable using another categorical one</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-a-variable-using-another-categorical-one/m-p/308138#M66079</link>
      <description>&lt;P&gt;This might be the easiest way to say it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if name in : ('clozipine ', 'terazip ') then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's up to you whether you want to include the blank at the end of the compound name.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2016 14:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-a-variable-using-another-categorical-one/m-p/308138#M66079</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-30T14:02:09Z</dc:date>
    </item>
  </channel>
</rss>

