<?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: PRXCHANGE Simple Pattern Change in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579896#M164664</link>
    <description>&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input COM_FIELD3&amp;amp; $1000.;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;new=prxchange('s/(0)(\d\*)/O$2/',-1,COM_FIELD3);&lt;/STRONG&gt;&lt;/FONT&gt;
datalines;
CORRECTION:08*119*5 09*119*5 04*119*5 05*119*5 TECHID:1150068 REPAIR DOOR ACCESS PANEL LEFT 1.7 REPAIR DOOR ACCESS PANEL RIGHT 1.7 NON-ADJACENT OVERLAP -0.2
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Aug 2019 14:52:30 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-08-08T14:52:30Z</dc:date>
    <item>
      <title>PRXCHANGE Simple Pattern Change</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579871#M164659</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the following lines, I simply need to&amp;nbsp;change the '0's in the patterns (08*119*5, 05*119*5, etc.) with a capital&amp;nbsp;"O" (O8*119*5, O5*119*5, etc.) .&amp;nbsp; I've tried with the PRXCHANGE function but I can't seem to get it to work without changing all the other '0's in the datalines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; COM_FIELD3 &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$1000.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;CORRECTION:08*119*5 09*119*5 04*119*5 05*119*5 TECHID:1150068 REPAIR DOOR ACCESS PANEL LEFT 1.7 REPAIR DOOR ACCESS PANEL RIGHT 1.7 NON-ADJACENT OVERLAP -0.2&lt;/P&gt;&lt;P&gt;CORRECTION:08*119*5 09*119*5 04*119*5 05*119*5 TECHID:1150042 REPAIR DOOR ACCESS PANEL LEFT 1.7 REPAIR DOOR ACCESS PANEL RIGHT 1.7 NON-ADJACENT OVERLAP -0.2&lt;/P&gt;&lt;P&gt;CORRECTION:08*119*5 09*119*5 04*119*5 05*119*5 TECHID:1150068 REPAIR DOOR ACCESS PANEL LEFT 1.7 REPAIR DOOR ACCESS PANEL RIGHT 1.7 NON-ADJACENT OVERLAP -0.2&lt;/P&gt;&lt;P&gt;CORRECTION:08*119*5 09*119*5 04*119*5 05*119*5 TECHID:1150068 REPAIR DOOR ACCESS PANEL LEFT 1.7 REPAIR DOOR ACCESS PANEL RIGHT 1.7 NON-ADJACENT OVERLAP -0.2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Any help would be greatly appreciated!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579871#M164659</guid>
      <dc:creator>bendsteel6</dc:creator>
      <dc:date>2019-08-08T13:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: PRXCHANGE Simple Pattern Change</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579896#M164664</link>
      <description>&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input COM_FIELD3&amp;amp; $1000.;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;new=prxchange('s/(0)(\d\*)/O$2/',-1,COM_FIELD3);&lt;/STRONG&gt;&lt;/FONT&gt;
datalines;
CORRECTION:08*119*5 09*119*5 04*119*5 05*119*5 TECHID:1150068 REPAIR DOOR ACCESS PANEL LEFT 1.7 REPAIR DOOR ACCESS PANEL RIGHT 1.7 NON-ADJACENT OVERLAP -0.2
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579896#M164664</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-08-08T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: PRXCHANGE Simple Pattern Change</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579913#M164672</link>
      <description>&lt;P&gt;Works wonderfully!&amp;nbsp; Thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579913#M164672</guid>
      <dc:creator>bendsteel6</dc:creator>
      <dc:date>2019-08-08T15:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: PRXCHANGE Simple Pattern Change</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579919#M164676</link>
      <description>Could you please Mark answers as helpful and correct as appropriate. It helps future users narrow down what responses to look at.</description>
      <pubDate>Thu, 08 Aug 2019 15:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579919#M164676</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-08-08T15:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: PRXCHANGE Simple Pattern Change</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579925#M164678</link>
      <description>&lt;P&gt;I'd love to!&amp;nbsp; How do I do that?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 16:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579925#M164678</guid>
      <dc:creator>bendsteel6</dc:creator>
      <dc:date>2019-08-08T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: PRXCHANGE Simple Pattern Change</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579926#M164679</link>
      <description>you can see mark as answer and you need to click.</description>
      <pubDate>Thu, 08 Aug 2019 16:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579926#M164679</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-08-08T16:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: PRXCHANGE Simple Pattern Change</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579929#M164681</link>
      <description>&lt;P&gt;&lt;BR /&gt;Got it, done.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 16:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXCHANGE-Simple-Pattern-Change/m-p/579929#M164681</guid>
      <dc:creator>bendsteel6</dc:creator>
      <dc:date>2019-08-08T16:12:23Z</dc:date>
    </item>
  </channel>
</rss>

