<?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: PROC UNIVARIATE turns output in scientific notation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-turns-output-in-scientific-notation/m-p/813386#M321016</link>
    <description>&lt;P&gt;Normally, if the output contains 12 or more digits to the left of the decimal, the default is to create results in scientific notation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of the output as a printed report, you can ask PROC UNIVARIATE to output the results to a SAS data set, and then apply whatever format you want to change the appearance. And then print it whatever way you please with the formatted values.&lt;/P&gt;</description>
    <pubDate>Sun, 15 May 2022 20:00:03 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-05-15T20:00:03Z</dc:date>
    <item>
      <title>PROC UNIVARIATE turns output in scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-turns-output-in-scientific-notation/m-p/813382#M321013</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a proc univariate for a large dataset, but some of the variables' output is expressed in scientific notation and I want the absolute numbers. I can change them manually but would rather do it auotmatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc univariate data=corregida normaltest;&lt;BR /&gt;var edad INL bmi;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 18:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-turns-output-in-scientific-notation/m-p/813382#M321013</guid>
      <dc:creator>MerAgSo</dc:creator>
      <dc:date>2022-05-15T18:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC UNIVARIATE turns output in scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-turns-output-in-scientific-notation/m-p/813386#M321016</link>
      <description>&lt;P&gt;Normally, if the output contains 12 or more digits to the left of the decimal, the default is to create results in scientific notation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of the output as a printed report, you can ask PROC UNIVARIATE to output the results to a SAS data set, and then apply whatever format you want to change the appearance. And then print it whatever way you please with the formatted values.&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 20:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-turns-output-in-scientific-notation/m-p/813386#M321016</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-15T20:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC UNIVARIATE turns output in scientific notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-turns-output-in-scientific-notation/m-p/813387#M321017</link>
      <description>&lt;P&gt;Use ODS OUTPUT to create a data set that contains the statistics. Then use PROC PRINT to display the value in whatever format you want. For example, the following captures two output tables and uses the 20.16 format to print the numerical values of the statistics:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data corregida;
call streaminit(123);
do i = 1 to 100;
   edad=rand("normal",0,1e-10);
   output;
end;
run;

ods trace on;
proc univariate data=corregida normaltest;
var edad ; 
ods output Moments=Moments
           BasicMeasures=BM;
run;

proc print data=Moments;
format nValue1 nValue2 20.16;
run;

proc print data=BM;
format locValue VarValue 20.16;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 May 2022 20:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-turns-output-in-scientific-notation/m-p/813387#M321017</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-15T20:20:22Z</dc:date>
    </item>
  </channel>
</rss>

