<?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 Count number of observations in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-observations/m-p/150754#M11835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAS EG Users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to count number of observations in SAS dataset, when it shows question mark while scrolling from top to bottom in tooltip that generally says "x of y" where y represents total number of observations in dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc SQL;&lt;/P&gt;&lt;P&gt;Select count(*)&lt;/P&gt;&lt;P&gt;from WORK.&amp;lt;datasetname&amp;gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can above code be used or does it need some modifications? I haven't used PROC SQL in a while &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2014 17:25:35 GMT</pubDate>
    <dc:creator>noobs</dc:creator>
    <dc:date>2014-05-08T17:25:35Z</dc:date>
    <item>
      <title>Count number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-observations/m-p/150754#M11835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAS EG Users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to count number of observations in SAS dataset, when it shows question mark while scrolling from top to bottom in tooltip that generally says "x of y" where y represents total number of observations in dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc SQL;&lt;/P&gt;&lt;P&gt;Select count(*)&lt;/P&gt;&lt;P&gt;from WORK.&amp;lt;datasetname&amp;gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can above code be used or does it need some modifications? I haven't used PROC SQL in a while &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 17:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-observations/m-p/150754#M11835</guid>
      <dc:creator>noobs</dc:creator>
      <dc:date>2014-05-08T17:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-observations/m-p/150755#M11836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on what you want to do with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can right click a data set, see the properties which includes the number of observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code above will print to screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you should try your code rather than ask if it works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 17:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-observations/m-p/150755#M11836</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-08T17:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of observations</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-observations/m-p/150756#M11837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The [?] appears when accessing a VIEW or sometimes a DMBS table (via a SAS/ACCESS library) when the row count isn't available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try the PROC SQL step, or perhaps glean some information from the Summary Statistics task, One-Way Frequencies task or Data Set Attributes task.&amp;nbsp; If you use Summary Statistics or One-Way Frequencies, and if the table is a DBMS table, then SAS will actually push that "counting work" down to the database, which should be more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 17:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-observations/m-p/150756#M11837</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-05-08T17:57:37Z</dc:date>
    </item>
  </channel>
</rss>

