<?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 Missing Decimal Places in Proc means in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563843#M10942</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is my data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snip 1.PNG" style="width: 188px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30016i23C9BF5E1EF1B180/image-size/large?v=v2&amp;amp;px=999" role="button" title="snip 1.PNG" alt="snip 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I am using below code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=adsl(keep=trt01pn age); by trt01pn; run;

proc means data=adsl maxdec=2 noprint;
	by trt01pn;
	var age;
	output out=age_ n=n1 mean=mean1 std=std1 median=med min=min1 max=max1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Getting below result with missing decimal places, what might be the reason for missing decimal places?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snip 2.PNG" style="width: 523px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30017i6491943CF7CED293/image-size/large?v=v2&amp;amp;px=999" role="button" title="snip 2.PNG" alt="snip 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can get values with decimal places?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adithya&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 19:16:05 GMT</pubDate>
    <dc:creator>chinna0369</dc:creator>
    <dc:date>2019-06-05T19:16:05Z</dc:date>
    <item>
      <title>Missing Decimal Places in Proc means</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563843#M10942</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is my data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snip 1.PNG" style="width: 188px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30016i23C9BF5E1EF1B180/image-size/large?v=v2&amp;amp;px=999" role="button" title="snip 1.PNG" alt="snip 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I am using below code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=adsl(keep=trt01pn age); by trt01pn; run;

proc means data=adsl maxdec=2 noprint;
	by trt01pn;
	var age;
	output out=age_ n=n1 mean=mean1 std=std1 median=med min=min1 max=max1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Getting below result with missing decimal places, what might be the reason for missing decimal places?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snip 2.PNG" style="width: 523px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30017i6491943CF7CED293/image-size/large?v=v2&amp;amp;px=999" role="button" title="snip 2.PNG" alt="snip 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can get values with decimal places?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adithya&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 19:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563843#M10942</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-06-05T19:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Decimal Places in Proc means</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563849#M10943</link>
      <description>&lt;P&gt;I suspect it is a default you have set to view tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you print the data you would likely see the decimals for MEAN1 and STD1, the only variables that might have a decimal.&lt;/P&gt;
&lt;P&gt;Or you may need to provide an explicit format when printing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why bother with the MAXDEC=2 when using NOPRINT? From the documentation for Proc Means:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H4 class="xis-argument"&gt;MAXDEC=&lt;SPAN class="xis-userSuppliedValue"&gt;number&lt;/SPAN&gt;&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimple"&gt;specifies the maximum number of decimal places to display the statistics in the&lt;STRONG&gt; printed or displayed&lt;/STRONG&gt; output. MAXDEC= has no effect on statistics that are saved in an output data set.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 05 Jun 2019 19:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563849#M10943</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-05T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Decimal Places in Proc means</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563853#M10944</link>
      <description>&lt;P&gt;Yes, how I can I get decimal places to my output dataset? where can I change that setting?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 19:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563853#M10944</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-06-05T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Decimal Places in Proc means</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563864#M10945</link>
      <description>It's in there, you may need to change the format. &lt;BR /&gt;YOu can apply a format in a data step with the format statement.&lt;BR /&gt;&lt;BR /&gt;format var 8.2;</description>
      <pubDate>Wed, 05 Jun 2019 19:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563864#M10945</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-05T19:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Decimal Places in Proc means</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563866#M10947</link>
      <description>&lt;P&gt;Got it. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 19:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Missing-Decimal-Places-in-Proc-means/m-p/563866#M10947</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-06-05T19:58:14Z</dc:date>
    </item>
  </channel>
</rss>

