<?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 reverse a number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-reverse-a-number/m-p/749467#M235508</link>
    <description>&lt;P&gt;I don't think a solution exists that doesn't separate and combine, at least under the hood. Using prxchange is one way to hide the necessary steps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want = prxchange('s/(\d+)-(\d+)/$2-$1/', 1, have);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Jun 2021 10:07:18 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-06-22T10:07:18Z</dc:date>
    <item>
      <title>How to reverse a number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reverse-a-number/m-p/749442#M235497</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have a data like&lt;BR /&gt;03-455&lt;BR /&gt;04-111&lt;BR /&gt;09-788&lt;BR /&gt;I need output like&lt;BR /&gt;455-03&lt;BR /&gt;111-04&lt;BR /&gt;788-09&lt;BR /&gt;is there any direct function for this output instead of separating and combining&lt;BR /&gt;&lt;BR /&gt;Can Anyone explain how to do??</description>
      <pubDate>Tue, 22 Jun 2021 09:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reverse-a-number/m-p/749442#M235497</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-06-22T09:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to reverse a number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reverse-a-number/m-p/749446#M235501</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want = catx("-",scan(have,2,"-"),scan(have,1,"-"));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 09:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reverse-a-number/m-p/749446#M235501</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-22T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to reverse a number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reverse-a-number/m-p/749467#M235508</link>
      <description>&lt;P&gt;I don't think a solution exists that doesn't separate and combine, at least under the hood. Using prxchange is one way to hide the necessary steps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;want = prxchange('s/(\d+)-(\d+)/$2-$1/', 1, have);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 10:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reverse-a-number/m-p/749467#M235508</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-06-22T10:07:18Z</dc:date>
    </item>
  </channel>
</rss>

