<?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 How to change the length of numeric variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17650#M3384</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I ran a proc means procedure to get mean and standard deviation for my data. However, the length for them are 12, eg, mean=0.0578154391, std=0.0245687672. I only want to have 3 decimal places and total length is 5, that is, mean=0.057, std=0.024, and they still have to be numeric. How should I do it? Thank you very much.&lt;BR /&gt;
&lt;BR /&gt;
Lu</description>
    <pubDate>Fri, 15 Oct 2010 16:02:21 GMT</pubDate>
    <dc:creator>lueryy2000</dc:creator>
    <dc:date>2010-10-15T16:02:21Z</dc:date>
    <item>
      <title>How to change the length of numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17650#M3384</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I ran a proc means procedure to get mean and standard deviation for my data. However, the length for them are 12, eg, mean=0.0578154391, std=0.0245687672. I only want to have 3 decimal places and total length is 5, that is, mean=0.057, std=0.024, and they still have to be numeric. How should I do it? Thank you very much.&lt;BR /&gt;
&lt;BR /&gt;
Lu</description>
      <pubDate>Fri, 15 Oct 2010 16:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17650#M3384</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2010-10-15T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the length of numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17651#M3385</link>
      <description>Try &lt;BR /&gt;
&lt;BR /&gt;
proc means data = one maxdec=3;&lt;BR /&gt;
var ...;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Good luck!</description>
      <pubDate>Fri, 15 Oct 2010 16:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17651#M3385</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-10-15T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the length of numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17652#M3386</link>
      <description>Sorry I didn't make myself clear. I also used the output statement in proc means prodecure and get a sas dataset: data1 to include the mean and std, I mean how to change the length of mean and std in data1.&lt;BR /&gt;
&lt;BR /&gt;
Lu</description>
      <pubDate>Fri, 15 Oct 2010 16:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17652#M3386</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2010-10-15T16:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the length of numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17653#M3387</link>
      <description>Do you really want to round the values or do you just want to change the format for when they are displayed?  You can use proc datasets to change the format of the output dataset.</description>
      <pubDate>Fri, 15 Oct 2010 16:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17653#M3387</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-10-15T16:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the length of numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17654#M3388</link>
      <description>It also looks like if you use the format statement in proc means the output dataset will inherit the formats for those variables.</description>
      <pubDate>Fri, 15 Oct 2010 16:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17654#M3388</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-10-15T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the length of numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17655#M3389</link>
      <description>Thank you very much. Your reply reminded me the round function, by which I can change the decimal place for mean and std. Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Lu</description>
      <pubDate>Fri, 15 Oct 2010 17:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-the-length-of-numeric-variable/m-p/17655#M3389</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2010-10-15T17:04:44Z</dc:date>
    </item>
  </channel>
</rss>

