<?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/59588#M16817</link>
    <description>You can also use a colon modifier to select codes that "Begin With".  However,  I believe that this method is limited to an "IF" statement.&lt;BR /&gt;
&lt;BR /&gt;
see  &lt;A href="http://support.sas.com/kb/24/851.html" target="_blank"&gt;http://support.sas.com/kb/24/851.html&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
(Sample 24851: Using a Colon Modifier to Select Observations with Values Beginning with a Specific Character By Kirk Paul Lafler)&lt;BR /&gt;
&lt;BR /&gt;
for more information.</description>
    <pubDate>Thu, 06 Jan 2011 15:58:03 GMT</pubDate>
    <dc:creator>LAP</dc:creator>
    <dc:date>2011-01-06T15:58:03Z</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/59586#M16815</link>
      <description>I have a variable by the name DiseaseCode. How can I select any code that begins with B2.&lt;BR /&gt;
&lt;BR /&gt;
That is I want to select anything of the form B2**. It can be B23, B2K, B2SKH.&lt;BR /&gt;
&lt;BR /&gt;
Can someone help.</description>
      <pubDate>Thu, 06 Jan 2011 14:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/59586#M16815</guid>
      <dc:creator>Statsconsultancy</dc:creator>
      <dc:date>2011-01-06T14:08:00Z</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/59587#M16816</link>
      <description>Hi:&lt;BR /&gt;
  Look at the WHERE statement documentation and the LIKE operator:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000202951.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000202951.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  For example, you could do:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc print data=lib.data;&lt;BR /&gt;
  where disease like 'B2%';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
or,&lt;BR /&gt;
 &lt;BR /&gt;
data new;&lt;BR /&gt;
  set lib.data;&lt;BR /&gt;
  where disease like 'B2%';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
For the LIKE operator, the _ (underscore) is the wild card character for 1 character and the % (percent) is the wild card character for multiple characters. So, for example, LIKE 'B2_' would find a value that started with B2 and had any 3rd character, while LIKE 'B2%' would find B2X, B2XYZ or B2ABCDEFG.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 06 Jan 2011 14:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/59587#M16816</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-01-06T14:33:55Z</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/59588#M16817</link>
      <description>You can also use a colon modifier to select codes that "Begin With".  However,  I believe that this method is limited to an "IF" statement.&lt;BR /&gt;
&lt;BR /&gt;
see  &lt;A href="http://support.sas.com/kb/24/851.html" target="_blank"&gt;http://support.sas.com/kb/24/851.html&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
(Sample 24851: Using a Colon Modifier to Select Observations with Values Beginning with a Specific Character By Kirk Paul Lafler)&lt;BR /&gt;
&lt;BR /&gt;
for more information.</description>
      <pubDate>Thu, 06 Jan 2011 15:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DELETE-or-SELECT-TEXT-BEGINNING-WITH-SAME-CHARACTER/m-p/59588#M16817</guid>
      <dc:creator>LAP</dc:creator>
      <dc:date>2011-01-06T15:58:03Z</dc:date>
    </item>
  </channel>
</rss>

