<?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: Length in proc means in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145095#M38562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in the documentation the numeric precision chapters.&lt;/P&gt;&lt;P&gt;There are no fixed numbers as all is floating based on internal 8 bytes.&lt;/P&gt;&lt;P&gt;The limit of meaningful digits is about 12&lt;/P&gt;&lt;P&gt;What you are probably looking for is the layout of the result.&lt;/P&gt;&lt;P&gt;That one is the format of the result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 06:25:49 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-08-01T06:25:49Z</dc:date>
    <item>
      <title>Length in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145092#M38559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the sum of a column in a dataset. I tried using both proc means and proc sql, but in both cases, the number of digits in the sum exceeded the length of the variable. I'm not sure how to program a longer length into either of those functions. I tried to do it in proc sql like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table new as&lt;/P&gt;&lt;P&gt;select sum(var) as sum_var length=50 from have;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code worked, but ignored my length statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 17:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145092#M38559</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2014-07-31T17:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Length in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145093#M38560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand your issue, but the length of numeric variable in SAS is 3-8, with 8 as the default. In other words, assign a length greater than 8 will have no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 18:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145093#M38560</guid>
      <dc:creator>haikuobian</dc:creator>
      <dc:date>2014-07-31T18:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Length in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145094#M38561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tyr this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table new as&lt;/P&gt;&lt;P&gt;select sum(var) as sum_var format=best16. from have;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 18:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145094#M38561</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-31T18:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Length in proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145095#M38562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in the documentation the numeric precision chapters.&lt;/P&gt;&lt;P&gt;There are no fixed numbers as all is floating based on internal 8 bytes.&lt;/P&gt;&lt;P&gt;The limit of meaningful digits is about 12&lt;/P&gt;&lt;P&gt;What you are probably looking for is the layout of the result.&lt;/P&gt;&lt;P&gt;That one is the format of the result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 06:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Length-in-proc-means/m-p/145095#M38562</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-01T06:25:49Z</dc:date>
    </item>
  </channel>
</rss>

