<?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: alphabet and numeric using like operator in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797712#M313636</link>
    <description>&lt;P&gt;Your code does not make any sense. Please show us the expected result from your example data.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 06:43:50 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-02-22T06:43:50Z</dc:date>
    <item>
      <title>alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797705#M313631</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ds;
input text $;
datalines;
abcll12
slff37
uyxiiz3
123
;
run;

proc sql;
select * from ds
where text like '%[a-z]%'  as alphabet and like '%[0-9]%' as numeric ;
quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to get alphabet and numeric from this data instead of compress function&amp;nbsp; using like operator&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 04:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797705#M313631</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-02-22T04:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797712#M313636</link>
      <description>&lt;P&gt;Your code does not make any sense. Please show us the expected result from your example data.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797712#M313636</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-22T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797713#M313637</link>
      <description>&lt;P&gt;Please show the expected result, it is not clear what you want. And please explain why you don't want to use compress.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797713#M313637</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-02-22T06:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797714#M313638</link>
      <description>&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl63" style="height: 15.0pt; width: 48pt;"&gt;Alphabet&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;Numeric&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;&lt;SPAN&gt;abcll&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;slff&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;37&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl64" style="height: 15.0pt; border-top: none;"&gt;uyxiiz&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;123&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;123&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 06:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797714#M313638</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-02-22T06:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797715#M313639</link>
      <description>&lt;P&gt;So you want to create two new variables, one containing only numeric characters, the other the rest?&lt;/P&gt;
&lt;P&gt;The proper tool for this is the COMPRESS function, as you already mentioned, so use it (Maxim 14).&lt;/P&gt;
&lt;P&gt;The WHERE clause in SQL is for filtering observations, not for creating variables.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 07:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797715#M313639</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-22T07:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797716#M313640</link>
      <description>&lt;P&gt;PS why do you have the digits "123" in alphabet in the last observation? There, the variable should be empty.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 07:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797716#M313640</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-22T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797721#M313642</link>
      <description>&lt;P&gt;And what do you expect if the original value is "a1b2c3"? Or is it 100% sure that you have one block of non-digits and another of only digits?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 07:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797721#M313642</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-02-22T07:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet and numeric using like operator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797726#M313644</link>
      <description>&lt;P&gt;Also see Maxim 1: Read the Documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.5/sqlproc/n1ege2983n6h0vn1s1uj1459phr9.htm" target="_blank" rel="noopener"&gt;LIKE Operator&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LIKE operator does not support regular expressions.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 08:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alphabet-and-numeric-using-like-operator/m-p/797726#M313644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-22T08:01:13Z</dc:date>
    </item>
  </channel>
</rss>

