<?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 do I change the value if the value contains a specific content? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333204#M75041</link>
    <description>you're welcome</description>
    <pubDate>Wed, 15 Feb 2017 22:28:06 GMT</pubDate>
    <dc:creator>gauthamk28</dc:creator>
    <dc:date>2017-02-15T22:28:06Z</dc:date>
    <item>
      <title>How do I change the value if the value contains a specific content?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333191#M75037</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I use SAS 9.4 and I have a variable like this:&lt;/P&gt;&lt;P&gt;study_id&lt;/P&gt;&lt;P&gt;CS-02-0001&lt;/P&gt;&lt;P&gt;CS-02-0002&lt;/P&gt;&lt;P&gt;CS-02-0003&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope to change it to CS-01-0001,CS-01-0002,... In other words, I want to change the part to CS-01 if the value includes CS-02. I think the codes should be something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;modify have;&lt;BR /&gt;if find(study_id,"CS-02") then ??;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone can help me figure out the problem? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333191#M75037</guid>
      <dc:creator>Therain</dc:creator>
      <dc:date>2017-02-15T22:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the value if the value contains a specific content?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333198#M75038</link>
      <description>I hope this helps u&lt;BR /&gt;study_id=Tranwrd(study_id,'CS-02','CS-01');</description>
      <pubDate>Wed, 15 Feb 2017 22:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333198#M75038</guid>
      <dc:creator>gauthamk28</dc:creator>
      <dc:date>2017-02-15T22:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the value if the value contains a specific content?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333200#M75040</link>
      <description>&lt;P&gt;Thank you so much! It works!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333200#M75040</guid>
      <dc:creator>Therain</dc:creator>
      <dc:date>2017-02-15T22:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change the value if the value contains a specific content?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333204#M75041</link>
      <description>you're welcome</description>
      <pubDate>Wed, 15 Feb 2017 22:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-change-the-value-if-the-value-contains-a-specific/m-p/333204#M75041</guid>
      <dc:creator>gauthamk28</dc:creator>
      <dc:date>2017-02-15T22:28:06Z</dc:date>
    </item>
  </channel>
</rss>

