<?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: Count of items in a column in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790216#M32473</link>
    <description>&lt;P&gt;doing this would isolate the one column I'm looking at but what I really want is to be able to get a count of how many rows are in that column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so for example, let's say that column contains all the ingredients I need for a recipe, I actually just want a count, so a number of how many things are on that list&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jan 2022 19:20:49 GMT</pubDate>
    <dc:creator>celbel</dc:creator>
    <dc:date>2022-01-14T19:20:49Z</dc:date>
    <item>
      <title>Count of items in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790209#M32471</link>
      <description>&lt;P&gt;I've created a table where I extracted all the data I need using proc sql, now from that code I want to get a count of the data in one column.. does anyone have any tips?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 18:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790209#M32471</guid>
      <dc:creator>celbel</dc:creator>
      <dc:date>2022-01-14T18:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count of items in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790210#M32472</link>
      <description>&lt;P&gt;PROC FREQ.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.class;
table age;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Otherwise, show an example of what you're looking to calculate overall.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/399835"&gt;@celbel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I've created a table where I extracted all the data I need using proc sql, now from that code I want to get a count of the data in one column.. does anyone have any tips?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 18:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790210#M32472</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-14T18:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count of items in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790216#M32473</link>
      <description>&lt;P&gt;doing this would isolate the one column I'm looking at but what I really want is to be able to get a count of how many rows are in that column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so for example, let's say that column contains all the ingredients I need for a recipe, I actually just want a count, so a number of how many things are on that list&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 19:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790216#M32473</guid>
      <dc:creator>celbel</dc:creator>
      <dc:date>2022-01-14T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count of items in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790231#M32474</link>
      <description>&lt;P&gt;Ok, lots of ways to get that value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you planning to do with it? Depending on what the next step is you may want it in a macro variable or data set. If you're&amp;nbsp; looking for verification or to check it, that information is also in the log after the creation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have N;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also use PROC CONTENTS to view a description of the data set:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jan 2022 19:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790231#M32474</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-14T19:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count of items in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790511#M32491</link>
      <description>proc freq data=sashelp.class nlevels;&lt;BR /&gt;table age;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 17 Jan 2022 12:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790511#M32491</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-17T12:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count of items in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790539#M32493</link>
      <description>&lt;P&gt;To get the number of non-missing values in a column, use the &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.5/sqlproc/n123fsko39j44pn16zlt087e1m2h.htm#n0v3enhyrk23j0n1n5k6hnlxxm49" target="_blank" rel="noopener"&gt;COUNT()&lt;/A&gt; summary function in SQL.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 15:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Count-of-items-in-a-column/m-p/790539#M32493</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-17T15:52:17Z</dc:date>
    </item>
  </channel>
</rss>

