<?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: Contains a specific string then keep this string in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706267#M26344</link>
    <description>&lt;P&gt;See if you can use this as a template&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x $50.;
datalines;
test xx (0+ år),test xx 2-12 ,xx xx (0+ )
test xx (2+ år),test xx 2-12 ,xx xx (0+ )
test xx 2-12,test xx (0+ år) ,xx xx (0+ )
;

data want;
   set have;
   if find(x, "test xx (0+ år)") then y = "Good";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Dec 2020 09:39:35 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2020-12-16T09:39:35Z</dc:date>
    <item>
      <title>Contains a specific string then keep this string</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706266#M26343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a big dataset with a column that have different string in the same row seperated with a comma e.g.:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Column&lt;/P&gt;&lt;P&gt;test xx (0+ år),test xx 2-12 ,xx xx (0+ )&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I need a code that can say if the Column contains "test xx (0+ år)," then call it "good"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in this case the result willl be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;column&lt;/P&gt;&lt;P&gt;Good&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 16 Dec 2020 09:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706266#M26343</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2020-12-16T09:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Contains a specific string then keep this string</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706267#M26344</link>
      <description>&lt;P&gt;See if you can use this as a template&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x $50.;
datalines;
test xx (0+ år),test xx 2-12 ,xx xx (0+ )
test xx (2+ år),test xx 2-12 ,xx xx (0+ )
test xx 2-12,test xx (0+ år) ,xx xx (0+ )
;

data want;
   set have;
   if find(x, "test xx (0+ år)") then y = "Good";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Dec 2020 09:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706267#M26344</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-12-16T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Contains a specific string then keep this string</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706269#M26346</link>
      <description>&lt;P&gt;Thank you. It worked. have a good day&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 09:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706269#M26346</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2020-12-16T09:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Contains a specific string then keep this string</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706271#M26348</link>
      <description>&lt;P&gt;I lige måde &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 09:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Contains-a-specific-string-then-keep-this-string/m-p/706271#M26348</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-12-16T09:54:31Z</dc:date>
    </item>
  </channel>
</rss>

