<?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 string in one field with 2 delimiter in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50063#M5447</link>
    <description>Does not look nice, but formula should be &lt;BR /&gt;
(SUBSTR(t1.A, Find(t1.a,'@')+1,Find(t1.a,'@',Find(t1.a,'@')+1)-Find(t1.a,'@')-1))&lt;BR /&gt;
&lt;BR /&gt;
if You string contains in variable t1.A (I used EG for testing)&lt;BR /&gt;
Hopefully You have not need to convert in this way million of rows. &lt;BR /&gt;
&lt;BR /&gt;
P.S. I would add befoire this statement checks, that string really contains two pieces of @ sign. &lt;BR /&gt;
&lt;BR /&gt;
/oleg</description>
    <pubDate>Wed, 15 Dec 2010 13:47:09 GMT</pubDate>
    <dc:creator>Oleg</dc:creator>
    <dc:date>2010-12-15T13:47:09Z</dc:date>
    <item>
      <title>How To find string in one field with 2 delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50062#M5446</link>
      <description>Need help!!&lt;BR /&gt;
&lt;BR /&gt;
I have data field look like this :&lt;BR /&gt;
&lt;BR /&gt;
78687hkjkjh43@hsak-786778@hhjjjh762lkjklll&lt;BR /&gt;
&lt;BR /&gt;
I want to get data beetween delimiter @.....@ I want get value &lt;B&gt;hsak-786778&lt;/B&gt;&lt;BR /&gt;
Thx for your help....&lt;BR /&gt;
&lt;BR /&gt;
data getstr1(keep=memo test);&lt;BR /&gt;
set Sastbl.sas;&lt;BR /&gt;
test=input(delimiter="@" and "@",$10.);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
this can't solve my problem, any other solution please advice.thx....</description>
      <pubDate>Wed, 15 Dec 2010 04:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50062#M5446</guid>
      <dc:creator>YadiAcho</dc:creator>
      <dc:date>2010-12-15T04:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How To find string in one field with 2 delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50063#M5447</link>
      <description>Does not look nice, but formula should be &lt;BR /&gt;
(SUBSTR(t1.A, Find(t1.a,'@')+1,Find(t1.a,'@',Find(t1.a,'@')+1)-Find(t1.a,'@')-1))&lt;BR /&gt;
&lt;BR /&gt;
if You string contains in variable t1.A (I used EG for testing)&lt;BR /&gt;
Hopefully You have not need to convert in this way million of rows. &lt;BR /&gt;
&lt;BR /&gt;
P.S. I would add befoire this statement checks, that string really contains two pieces of @ sign. &lt;BR /&gt;
&lt;BR /&gt;
/oleg</description>
      <pubDate>Wed, 15 Dec 2010 13:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50063#M5447</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2010-12-15T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How To find string in one field with 2 delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50064#M5448</link>
      <description>Hello YadiAcho,&lt;BR /&gt;
&lt;BR /&gt;
This is another solution:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data a;&lt;BR /&gt;
  i="78687hkjkjh43@hsak-786778@hhjjjh762lkjklll";&lt;BR /&gt;
  r=SCAN(i,2,'@');&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Wed, 15 Dec 2010 15:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50064#M5448</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2010-12-15T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How To find string in one field with 2 delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50065#M5449</link>
      <description>thx... &lt;BR /&gt;
&lt;BR /&gt;
it works...</description>
      <pubDate>Tue, 11 Jan 2011 08:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50065#M5449</guid>
      <dc:creator>YadiAcho</dc:creator>
      <dc:date>2011-01-11T08:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: How To find string in one field with 2 delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50066#M5450</link>
      <description>And as a general-purpose pattern-matching approach, regular expressions work great.  Check out the PRXMATCH function.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/129-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/129-29.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 11 Jan 2011 19:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-To-find-string-in-one-field-with-2-delimiter/m-p/50066#M5450</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2011-01-11T19:05:11Z</dc:date>
    </item>
  </channel>
</rss>

