<?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: Decreasing decimal places in proc surveyfreq output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247593#M56318</link>
    <description>&lt;P&gt;&lt;EM&gt;"it converted the missing values into 88 &amp;amp; 99"&lt;/EM&gt; - That is unusual. Please post as a new question if the problem persists.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2016 19:54:46 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-02-02T19:54:46Z</dc:date>
    <item>
      <title>Decreasing decimal places in proc surveyfreq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247554#M56311</link>
      <description>&lt;P&gt;The sas code below produces 4 decimal places output by default:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;surveyfreq&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;=data6;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; AH_Zone*CHAS_NUTRN_1*CHAS_SEX/ &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;chisq&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CV&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; H_weight;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&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 face="Courier New" size="2"&gt;Can someone help me reduce the output to 1 decimal place please!!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Lordy&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247554#M56311</guid>
      <dc:creator>Lordy</dc:creator>
      <dc:date>2016-02-02T18:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Decreasing decimal places in proc surveyfreq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247564#M56313</link>
      <description>&lt;P&gt;You can get hold of output tables data with ODS and then output them in whatever format you want with a datastep, proc SQL, proc Tabulate, proc Print or proc Report. &amp;nbsp;Use the statement &lt;STRONG&gt;ODS trace on;&lt;/STRONG&gt;&amp;nbsp; before calling surveyfreq to see the names of output tables in the log. Then use &lt;STRONG&gt;ODS output wantedTable=myTable;&lt;/STRONG&gt; to get a copy of the table.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247564#M56313</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-02-02T18:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Decreasing decimal places in proc surveyfreq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247570#M56314</link>
      <description>&lt;P&gt;Easiest is likely to be to pipe the output table to datasets and then you have all of the control of your favorite reporting procedures to modify formats, labels and appearance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a statement similar to this for each table of output you want to reformat in the procedure call:&lt;/P&gt;
&lt;P&gt;ods output &amp;lt;proc table name&amp;gt; = datasetnameyouwant;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The various table names are available in the online documentation for surveyfreq but you are likely looking for ChiSq&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other approach would be to modify the Surveyfreq table templates.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247570#M56314</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-02-02T18:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Decreasing decimal places in proc surveyfreq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247582#M56315</link>
      <description>&lt;P&gt;Awesome it worked!!. However, it converted the missing values into 88 &amp;amp; 99 and I am still trying to figure out why?&lt;BR /&gt;Thanks alot&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 19:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247582#M56315</guid>
      <dc:creator>Lordy</dc:creator>
      <dc:date>2016-02-02T19:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Decreasing decimal places in proc surveyfreq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247587#M56316</link>
      <description>&lt;P&gt;The ODS table name is Cross Tabs because it is an n-way table. I appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 19:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247587#M56316</guid>
      <dc:creator>Lordy</dc:creator>
      <dc:date>2016-02-02T19:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Decreasing decimal places in proc surveyfreq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247593#M56318</link>
      <description>&lt;P&gt;&lt;EM&gt;"it converted the missing values into 88 &amp;amp; 99"&lt;/EM&gt; - That is unusual. Please post as a new question if the problem persists.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 19:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247593#M56318</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-02-02T19:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Decreasing decimal places in proc surveyfreq output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247607#M56320</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;This is the output I run to decrease to 1 decimal place&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;trace&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;on&lt;/FONT&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;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;surveyfreq&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=data6;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; AH_Zone*new_CHAS_NUTRN_1*CHAS_SEX/ &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;chisq&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CV&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;weight&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; AH_weight;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; CrossTabs=ZoneTable;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=ZoneTable;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; percent &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;8.1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;stderr &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;8.1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;CL &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;8.1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;CV &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;8.1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 20:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decreasing-decimal-places-in-proc-surveyfreq-output/m-p/247607#M56320</guid>
      <dc:creator>Lordy</dc:creator>
      <dc:date>2016-02-02T20:04:13Z</dc:date>
    </item>
  </channel>
</rss>

