<?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: SAS query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276293#M55340</link>
    <description>&lt;P&gt;You could also substr from the first occurence of an alphabetic character:&lt;/P&gt;
&lt;P&gt;new_var=substr(findc(old_var,"","a"));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will substring from first alpha character to the end.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2016 15:09:27 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-06-09T15:09:27Z</dc:date>
    <item>
      <title>SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276283#M55338</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have dataset with the one variable X. I would like to write a query to exclude the first numerical, special character part and start reading from the first occurrence of the alphabet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;10 - SEASONAL ALLERGIES - UN/UNK/1954&lt;/P&gt;
&lt;P&gt;3333 ** COMMON COLD - 10/JAN/2015&lt;/P&gt;
&lt;P&gt;222 ### RECURRENT SINUSITIS - UN/UNK/2003&lt;/P&gt;
&lt;P&gt;44444 @@ INSOMNIA - UN/UNK/2008&lt;/P&gt;
&lt;P&gt;The output should look like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SEASONAL ALLERGIES - UN/UNK/1954&lt;/P&gt;
&lt;P&gt;COMMON COLD - 10/JAN/2015&lt;/P&gt;
&lt;P&gt;RECURRENT SINUSITIS - UN/UNK/2003&lt;/P&gt;
&lt;P&gt;INSOMNIA - UN/UNK/2008&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Rakesh&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276283#M55338</guid>
      <dc:creator>rakeshvvv</dc:creator>
      <dc:date>2016-06-09T14:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276288#M55339</link>
      <description>&lt;P&gt;You could use the VERIFY() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input x $60.;
cards4;
10 - SEASONAL ALLERGIES - UN/UNK/1954
3333 ** COMMON COLD - 10/JAN/2015
222 ### RECURRENT SINUSITIS - UN/UNK/2003
44444 @@ INSOMNIA - UN/UNK/2008
;;;;

data want ;
 set have ;
 x=substr(x,max(1,verify(x,'012345678 -+*#@')));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276288#M55339</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-06-09T15:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276293#M55340</link>
      <description>&lt;P&gt;You could also substr from the first occurence of an alphabetic character:&lt;/P&gt;
&lt;P&gt;new_var=substr(findc(old_var,"","a"));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will substring from first alpha character to the end.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276293#M55340</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-09T15:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276416#M55372</link>
      <description>&lt;PRE&gt;
I don't like Tom's code .



data have;
  input x $60.;
cards4;
10 - SEASONAL ALLERGIES - UN/UNK/1954
3333 ** COMMON COLD - 10/JAN/2015
222 ### RECURRENT SINUSITIS - UN/UNK/2003
44444 @@ INSOMNIA - UN/UNK/2008
;;;;


data want ;
 set have ;
 x=substr(x,max(1,verify(x,'012345678 -+*#@')));
 me=substr(x,prxmatch('/[a-z]/i',x));
run;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jun 2016 04:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/276416#M55372</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-10T04:37:14Z</dc:date>
    </item>
  </channel>
</rss>

