<?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: DELETE or SELECT TEXT BEGINNING WITH SAME CHARACTER in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60090#M17021</link>
    <description>Works in data step.  Nothing SQL here!&lt;BR /&gt;
&lt;BR /&gt;
Is it Friday yet?&lt;BR /&gt;
Art</description>
    <pubDate>Fri, 07 Jan 2011 13:44:31 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-01-07T13:44:31Z</dc:date>
    <item>
      <title>DELETE or SELECT TEXT BEGINNING WITH SAME CHARACTER</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60088#M17019</link>
      <description>I will like to select disease with codes beginning with B2 or C2.  Is it possible to use logical operations here. I tried the following, but it did not work&lt;BR /&gt;
&lt;BR /&gt;
data new;  &lt;BR /&gt;
set lib.data;  &lt;BR /&gt;
where disease like 'B2%' or where disease like 'C2%';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I want to select patients with disease codes B2*** or C2***. Can anyone help.</description>
      <pubDate>Fri, 07 Jan 2011 10:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60088#M17019</guid>
      <dc:creator>Statsconsultancy</dc:creator>
      <dc:date>2011-01-07T10:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE or SELECT TEXT BEGINNING WITH SAME CHARACTER</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60089#M17020</link>
      <description>This should work, you just have the syntax not entirely correct. Ommit the repetition of WHERE:&lt;BR /&gt;
&lt;BR /&gt;
where disease like 'B2%' or disease like 'C2%';&lt;BR /&gt;
&lt;BR /&gt;
That should do it. Basic SQL, nothing SAS here.&lt;BR /&gt;
&lt;BR /&gt;
Good luck, Jan.</description>
      <pubDate>Fri, 07 Jan 2011 10:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60089#M17020</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2011-01-07T10:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE or SELECT TEXT BEGINNING WITH SAME CHARACTER</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60090#M17021</link>
      <description>Works in data step.  Nothing SQL here!&lt;BR /&gt;
&lt;BR /&gt;
Is it Friday yet?&lt;BR /&gt;
Art</description>
      <pubDate>Fri, 07 Jan 2011 13:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60090#M17021</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-01-07T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE or SELECT TEXT BEGINNING WITH SAME CHARACTER</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60091#M17022</link>
      <description>You could also do:&lt;BR /&gt;
&lt;BR /&gt;
data new; &lt;BR /&gt;
set lib.data; &lt;BR /&gt;
where disease IN: ('B2','C2'); /* note the colon on the IN, just matches on 1st chars*/&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 07 Jan 2011 16:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/60091#M17022</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2011-01-07T16:22:05Z</dc:date>
    </item>
  </channel>
</rss>

