<?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: Convert exponent to real values in proc freq in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556585#M155043</link>
    <description>Use PROC TABULATE instead. Modifying the PROC FREQ template is a pain.</description>
    <pubDate>Mon, 06 May 2019 21:49:40 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-05-06T21:49:40Z</dc:date>
    <item>
      <title>Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556572#M155035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I ran a prof freq and I got my results but i am trying to remove the Exponent (E) from my result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data = income;&lt;/P&gt;&lt;P&gt;table amount;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;amount&amp;nbsp;&amp;nbsp; frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Percent&amp;nbsp; Cum_freq&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cum_persent&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;42344E12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;60.20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3454E54&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 44535E33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34.44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5675E44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;60.00&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 20:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556572#M155035</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2019-05-06T20:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556573#M155036</link>
      <description>&lt;P&gt;I am not sure if we could resolve it, alternatively we use the proc sql.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 20:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556573#M155036</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-06T20:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556585#M155043</link>
      <description>Use PROC TABULATE instead. Modifying the PROC FREQ template is a pain.</description>
      <pubDate>Mon, 06 May 2019 21:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556585#M155043</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-06T21:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556586#M155044</link>
      <description>&lt;P&gt;Send the result to a data set an specify a longer format in Proc Print to display the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data = income noprint;
   table amount/ outcum out=work.count;
run;

proc print data=work.count;
   format count cum_freq best32.;
run;
&lt;/PRE&gt;
&lt;P&gt;HOWEVER, none of the SAS numeric formats want to display 54+digit with 32 the limit. So you are still going to have some scientific notation. And 2 to the 53rd power (15 significant digits) is the largest integer that SAS has for precision of storage so you are exceeding that anyway.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 21:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556586#M155044</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-06T21:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556587#M155045</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=income;
class amount;

table amount*n=''*f=32.;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe this will work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/253321"&gt;@CathyVI&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I ran a prof freq and I got my results but i am trying to remove the Exponent (E) from my result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data = income;&lt;/P&gt;
&lt;P&gt;table amount;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;amount&amp;nbsp;&amp;nbsp; frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Percent&amp;nbsp; Cum_freq&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cum_persent&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;42344E12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;60.20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3454E54&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100.00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 44535E33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34.44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5675E44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;60.00&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 21:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/556587#M155045</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-06T21:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557281#M155318</link>
      <description>&lt;P&gt;So I tried this for a 2 x 2 table but didn't work&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=med;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; name;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; blank*name*n=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;*&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;f&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;32.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;???&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I am using proc freq to find 2x2 and 2x3 table so how will I use the proc tabulate without getting an exponent in my result ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 20:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557281#M155318</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2019-05-08T20:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557283#M155320</link>
      <description>What does didn't work mean? Can you generate some sample data we can use to test this? If not, please show an example of a 2x2 table and the numbers you're getting.</description>
      <pubDate>Wed, 08 May 2019 20:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557283#M155320</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-08T20:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557327#M155348</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, what i mean by didn't work is that i can't get percent, cum_percent &amp;amp; cum_freq by using proc tabulate and i wanted percent.</description>
      <pubDate>Wed, 08 May 2019 23:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557327#M155348</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2019-05-08T23:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557334#M155353</link>
      <description>&lt;P&gt;Note that your totals are too large for SAS to represent exactly. Maximum number of decimal digits is 15 .&lt;/P&gt;
&lt;P&gt;The value&amp;nbsp;&lt;SPAN&gt;42344E12 would take more than 15 digits.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So why not just accept the scientific notation?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or roll your own CUM variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.class ;
  tables sex / noprint out=counts;
run;
data counts;
  set counts;
  cum_count+count;
  cum_percent+percent;
  format count cum_count 32. percent cum_percent 6.2 ;
run;
proc print width=min;
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 May 2019 00:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557334#M155353</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-09T00:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert exponent to real values in proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557459#M155405</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/253321"&gt;@CathyVI&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, what i mean by didn't work is that i can't get percent, cum_percent &amp;amp; cum_freq by using proc tabulate and i wanted percent.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your code doesn't request the percentages as outputs, you need to explicitly code for those in PROC TABULATE, they are not part of the default output.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-exponent-to-real-values-in-proc-freq/m-p/557459#M155405</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-09T14:49:02Z</dc:date>
    </item>
  </channel>
</rss>

