<?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: How to find list of drugs in oracle db? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267947#M18553</link>
    <description>I cannot  list all drugs using like, right?&lt;BR /&gt;WHERE t1.PRODUCT_DESC_1 like ('*ARIPIPRAZOLE*','*ASENAPINE*')&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 03 May 2016 14:01:55 GMT</pubDate>
    <dc:creator>avatar</dc:creator>
    <dc:date>2016-05-03T14:01:55Z</dc:date>
    <item>
      <title>How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267905#M18546</link>
      <description>&lt;P&gt;I want to search for list of drugs in oracle database. can I list all the drugs in proc sql in where clause as below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;WHERE (&lt;BR /&gt;(A.PRODUCT_DESC_1 CONTAINS ('ARIPIPRAZOLE',' ASENAPINE',BREXPIPRAZOLE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got &amp;nbsp;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please&amp;nbsp;help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 12:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267905#M18546</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2016-05-03T12:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267909#M18547</link>
      <description>&lt;P&gt;CONTAINS doesn't support a list as argument. You need to combine them with OR.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 12:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267909#M18547</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-05-03T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267916#M18548</link>
      <description>With below  code got error again:&lt;BR /&gt;ERROR: CONTAINS operator requires character operands.&lt;BR /&gt;A.PRODUCT_DESC_1 CONTAINS ('ARIPIPRAZOLE' or 'ASENAPINE' or 'BREXPIPRAZOLE').&lt;BR /&gt;Anything wrong?&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2016 13:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267916#M18548</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2016-05-03T13:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267921#M18549</link>
      <description>&lt;P&gt;The syntax is incorrect, you need a contains for each argument, definitely a bit cumbersome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;A.PRODUCT_DESC_1 CONTAINS ('ARIPIPRAZOLE') 
                                 or CONTAINS ('ASENAPINE')
                                 or ...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2016 13:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267921#M18549</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-03T13:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267933#M18550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
  select *
  from   &amp;lt;YOUR_TABLE&amp;gt; A
  where  A.PRODUCT_DESC_1 in ("&lt;SPAN&gt;ARIPIPRAZOLE","ASENAPINE","BREXPIPRAZOLE");&lt;BR /&gt;quit;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2016 13:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267933#M18550</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-03T13:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267937#M18551</link>
      <description>I find variations in drug name like  ARIPIPRAZOLE++, ARIPIPRAZOLE&lt;BR /&gt;Contains brings both. I will go with contains&lt;BR /&gt;WHERE t1.PRODUCT_DESC_1 CONTAINS ('ARIPIPRAZOLE')&lt;BR /&gt;           OR t1.PRODUCT_DESC_1 CONTAINS ('CLOZAPINE');&lt;BR /&gt;This  code  worked .&lt;BR /&gt;Thank you so much!!&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2016 13:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267937#M18551</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2016-05-03T13:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267943#M18552</link>
      <description>&lt;P&gt;There are other constructs which may help you:&lt;/P&gt;
&lt;P&gt;where XYZ like "*ABC*";&lt;/P&gt;
&lt;P&gt;will give you all which contain the string ABC.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 13:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267943#M18552</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-03T13:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267947#M18553</link>
      <description>I cannot  list all drugs using like, right?&lt;BR /&gt;WHERE t1.PRODUCT_DESC_1 like ('*ARIPIPRAZOLE*','*ASENAPINE*')&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2016 14:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267947#M18553</guid>
      <dc:creator>avatar</dc:creator>
      <dc:date>2016-05-03T14:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find list of drugs in oracle db?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267950#M18554</link>
      <description>&lt;P&gt;No, like is used for pattern matching. &amp;nbsp;Why are you looking for drug names by the way? &amp;nbsp;Should you data not be encoded with WHODrug codes - that is not only safer (you don't miss ones) its simpler as well because you can use higher level terms to bring out groups of related drugs. &amp;nbsp;Also its standard in the industry.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 14:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-list-of-drugs-in-oracle-db/m-p/267950#M18554</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-03T14:07:52Z</dc:date>
    </item>
  </channel>
</rss>

