<?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: find and replace part of a string but only at the start of a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/find-and-replace-part-of-a-string-but-only-at-the-start-of-a/m-p/632318#M187460</link>
    <description>&lt;P&gt;I will assume that MOBILE is a character variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if mobile=:'614' then mobile='04'||substr(mobile,4);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Mar 2020 03:47:58 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-03-16T03:47:58Z</dc:date>
    <item>
      <title>find and replace part of a string but only at the start of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-and-replace-part-of-a-string-but-only-at-the-start-of-a/m-p/632315#M187459</link>
      <description>&lt;P&gt;I want to be able to find and replace '614' from the start of 'mobile' (not any other section of it) with 04.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Mobile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61420202&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;46145555&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;614566666&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4532790&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 16 Mar 2020 03:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-and-replace-part-of-a-string-but-only-at-the-start-of-a/m-p/632315#M187459</guid>
      <dc:creator>BenBrady</dc:creator>
      <dc:date>2020-03-16T03:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: find and replace part of a string but only at the start of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-and-replace-part-of-a-string-but-only-at-the-start-of-a/m-p/632318#M187460</link>
      <description>&lt;P&gt;I will assume that MOBILE is a character variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if mobile=:'614' then mobile='04'||substr(mobile,4);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Mar 2020 03:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-and-replace-part-of-a-string-but-only-at-the-start-of-a/m-p/632318#M187460</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-16T03:47:58Z</dc:date>
    </item>
  </channel>
</rss>

