<?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: Adding more decimals to the proc freq procedure in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-more-decimals-to-the-proc-freq-procedure/m-p/362547#M85661</link>
    <description>&lt;P&gt;You can edit the template. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* use ODS PATH statement so that you don't overwrite templates ;
* that shipped with SAS! ;

ODS PATH WORK.TEMPLAT(UPDATE) SASHELP.Tmplmst(READ);

proc template;
  edit Base.Freq.OneWayList;  
	edit Percent;
	  format=7.4 ;           
	end;
	edit CumPercent;
	  format=7.4 ;
	end;
  end;
run;

proc freq data=sashelp.class;
  tables height weight;
run;

* delete the edited template ;

proc template;
  delete Base.Freq.OneWayList;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 May 2017 17:18:56 GMT</pubDate>
    <dc:creator>SuzanneDorinski</dc:creator>
    <dc:date>2017-05-29T17:18:56Z</dc:date>
    <item>
      <title>Adding more decimals to the proc freq procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-more-decimals-to-the-proc-freq-procedure/m-p/362427#M85622</link>
      <description>&lt;P&gt;I want to add more decimal places to the percent column of the output created by proc freq in sas. I have a percent now of 87.76 but I would like this to 4 decimal places. The template for this is Base.Freq.OneWayFreqs. The code I am currently using is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=cat;&lt;/P&gt;&lt;P&gt;table food;&lt;/P&gt;&lt;P&gt;weight weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 07:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-more-decimals-to-the-proc-freq-procedure/m-p/362427#M85622</guid>
      <dc:creator>BenBrady</dc:creator>
      <dc:date>2017-05-29T07:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more decimals to the proc freq procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-more-decimals-to-the-proc-freq-procedure/m-p/362433#M85623</link>
      <description>&lt;P&gt;One way to get what you want is to output a table in PROC FREQ and then use PROC PRINT as this example shows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_freq_examples01.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_freq_examples01.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 07:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-more-decimals-to-the-proc-freq-procedure/m-p/362433#M85623</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-29T07:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more decimals to the proc freq procedure</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-more-decimals-to-the-proc-freq-procedure/m-p/362547#M85661</link>
      <description>&lt;P&gt;You can edit the template. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* use ODS PATH statement so that you don't overwrite templates ;
* that shipped with SAS! ;

ODS PATH WORK.TEMPLAT(UPDATE) SASHELP.Tmplmst(READ);

proc template;
  edit Base.Freq.OneWayList;  
	edit Percent;
	  format=7.4 ;           
	end;
	edit CumPercent;
	  format=7.4 ;
	end;
  end;
run;

proc freq data=sashelp.class;
  tables height weight;
run;

* delete the edited template ;

proc template;
  delete Base.Freq.OneWayList;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2017 17:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-more-decimals-to-the-proc-freq-procedure/m-p/362547#M85661</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2017-05-29T17:18:56Z</dc:date>
    </item>
  </channel>
</rss>

