<?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: Change number format in CATT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817328#M322621</link>
    <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;The *** is just an example. I add text to number.&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 17:01:39 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2022-06-09T17:01:39Z</dc:date>
    <item>
      <title>Change number format in CATT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817323#M322616</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I have number 15.699997 and I want to create variable with value 15.69***.&lt;/P&gt;
&lt;P&gt;Can you please modify the code below to get it work?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input a;
	datalines;
15.699997
;
run;

data want;
	set have;
	c=catt(a, " **** ");
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 16:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817323#M322616</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2022-06-09T16:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change number format in CATT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817325#M322618</link>
      <description>data want;&lt;BR /&gt;	set have;&lt;BR /&gt;	c=catt(PUT(a,8.2), "****");&lt;BR /&gt;run;</description>
      <pubDate>Thu, 09 Jun 2022 16:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817325#M322618</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2022-06-09T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change number format in CATT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817326#M322619</link>
      <description>&lt;P&gt;This works for that single value.&lt;/P&gt;
&lt;P&gt;God knows why you want that. Smacks of the social sciences * ** and *** for "significance levels"&lt;/P&gt;
&lt;PRE&gt;data have;
	input a;
   x = cats(substr(put(a,f9.6),1,5),"***");
datalines;
15.699997
;&lt;/PRE&gt;
&lt;P&gt;If you have a more generic question you should make it so as the proposed solution won't work for values above 100 most likely and may have issues with small values of A&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 16:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817326#M322619</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-09T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change number format in CATT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817328#M322621</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;The *** is just an example. I add text to number.&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 17:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817328#M322621</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2022-06-09T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change number format in CATT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817336#M322628</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49486"&gt;@hhchenfx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;The *** is just an example. I add text to number.&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I thought you wanted 15.69***. Using 8.2 format results in 15.70***.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 17:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-number-format-in-CATT/m-p/817336#M322628</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-09T17:45:19Z</dc:date>
    </item>
  </channel>
</rss>

