<?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 How to Replace numeric values to character in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Replace-numeric-values-to-character/m-p/529640#M26753</link>
    <description>&lt;P&gt;data have;&lt;BR /&gt;input a;&lt;BR /&gt;cards;&lt;BR /&gt;12.22&lt;BR /&gt;132.113&lt;BR /&gt;1.2455&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me how to replace the entire numeric values expect '&lt;STRONG&gt;.&lt;/STRONG&gt;' (decimals) with some charater&amp;nbsp;&lt;/P&gt;&lt;P&gt;expeted result is like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xx.xx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xxx.xxx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x.xxxx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 09:09:25 GMT</pubDate>
    <dc:creator>vThanu</dc:creator>
    <dc:date>2019-01-24T09:09:25Z</dc:date>
    <item>
      <title>How to Replace numeric values to character</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Replace-numeric-values-to-character/m-p/529640#M26753</link>
      <description>&lt;P&gt;data have;&lt;BR /&gt;input a;&lt;BR /&gt;cards;&lt;BR /&gt;12.22&lt;BR /&gt;132.113&lt;BR /&gt;1.2455&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me how to replace the entire numeric values expect '&lt;STRONG&gt;.&lt;/STRONG&gt;' (decimals) with some charater&amp;nbsp;&lt;/P&gt;&lt;P&gt;expeted result is like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xx.xx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xxx.xxx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x.xxxx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 09:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Replace-numeric-values-to-character/m-p/529640#M26753</guid>
      <dc:creator>vThanu</dc:creator>
      <dc:date>2019-01-24T09:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace numeric values to character</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Replace-numeric-values-to-character/m-p/529645#M26754</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc fcmp outlib=work.func.fmt;
function fmt(x) $;
  length y $ 32;
  y=translate(strip(put(x,best32.)),'xxxxxxxxxx','0123456789');
  return (y);
endsub;
run;
options cmplib=work.func;
proc format ;
value xfmt
 low-high=[fmt()];
run;
data have;
input a;
format a xfmt32.;
cards;
12.22
132.113
1.2455
;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="捕获.JPG" style="width: 275px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26533i13ED03E58D9D9166/image-size/large?v=v2&amp;amp;px=999" role="button" title="捕获.JPG" alt="捕获.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 10:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Replace-numeric-values-to-character/m-p/529645#M26754</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-01-24T10:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace numeric values to character</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Replace-numeric-values-to-character/m-p/529646#M26755</link>
      <description>&lt;P&gt;Thank you soo mcuh for you support..&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 10:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Replace-numeric-values-to-character/m-p/529646#M26755</guid>
      <dc:creator>vThanu</dc:creator>
      <dc:date>2019-01-24T10:25:40Z</dc:date>
    </item>
  </channel>
</rss>

