<?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 question on count and format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866617#M342250</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick question on count and format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select xx_yy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(1) format = comma12. as aci_knt&lt;/P&gt;&lt;P&gt;From&amp;nbsp;wkly_wxxx_fnl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does the count and format do in this code. please help me&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 19:39:24 GMT</pubDate>
    <dc:creator>soujik</dc:creator>
    <dc:date>2023-03-27T19:39:24Z</dc:date>
    <item>
      <title>question on count and format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866617#M342250</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick question on count and format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select xx_yy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(1) format = comma12. as aci_knt&lt;/P&gt;&lt;P&gt;From&amp;nbsp;wkly_wxxx_fnl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does the count and format do in this code. please help me&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 19:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866617#M342250</guid>
      <dc:creator>soujik</dc:creator>
      <dc:date>2023-03-27T19:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: question on count and format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866620#M342253</link>
      <description>&lt;P&gt;Count(1) counts the number of records in column 1 (which is the variable named xx_yy), which is also the same as the number of records in the data set; and format displays the result using the &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/leforinforref/p0sad1pg4gsni3n1gbjue9fxzyhq.htm" target="_self"&gt;COMMA. format&lt;/A&gt; (in other words, with appropriate commas).&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 19:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866620#M342253</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-27T19:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: question on count and format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866623#M342254</link>
      <description>&lt;P&gt;what does the comma12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it put comma after 12 digits?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 19:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866623#M342254</guid>
      <dc:creator>soujik</dc:creator>
      <dc:date>2023-03-27T19:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: question on count and format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866624#M342255</link>
      <description>&lt;P&gt;You can follow Maxim 4 and simply try it.&lt;/P&gt;
&lt;P&gt;Or you follow Maxim 1 and Read the Documentation:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p0sad1pg4gsni3n1gbjue9fxzyhq.htm" target="_blank" rel="noopener"&gt;COMMAw. Format&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 20:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866624#M342255</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-27T20:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: question on count and format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866636#M342259</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/441250"&gt;@soujik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;what does the comma12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it put comma after 12 digits?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As I said, it adds commas properly to your number. I have never seen a number with a comma after 12 digits. Since two people have given you a link to the documentation for the COMMA format, you can also look at the examples there.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 21:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866636#M342259</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-27T21:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: question on count and format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866638#M342260</link>
      <description>&lt;P&gt;COUNT() counts the number of times is argument is not missing.&amp;nbsp; So COUNT(1) is the same thing as COUNT(*), it just counts the number of observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FORMAT= is used to attach a format to the variable.&amp;nbsp; The COMMA format is used to display number with a comma as the thousands separator.&amp;nbsp; 12 is the width of the format, how many bytes it prints.&amp;nbsp; So COMMA12 will show numbers in the style of ,234,678,012 .&amp;nbsp; So use 12 is a little silly for positive numbers.&amp;nbsp; Either use COMMA11. if you expect numbers smaller than 1 billion or use something wider than 12 if you expect counts over 1 billion.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 21:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-count-and-format/m-p/866638#M342260</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-27T21:17:21Z</dc:date>
    </item>
  </channel>
</rss>

