<?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: Determining variable counts in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Determining-variable-counts/m-p/807018#M81745</link>
    <description>&lt;P&gt;To do the first with code, query DICTIONARY.COLUMNS in PROC SQL.&lt;/P&gt;
&lt;P&gt;For the second, try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=demomed;
tables htype;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For the third, see&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select max(reg_date)
from demomed;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Apr 2022 13:39:18 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-04-10T13:39:18Z</dc:date>
    <item>
      <title>Determining variable counts</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determining-variable-counts/m-p/807017#M81744</link>
      <description>&lt;P&gt;I was asked&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI style="font-weight: 400;" aria-level="2"&gt;&lt;SPAN&gt;How many character variables are there in the DEMOMED dataset? &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="2"&gt;&lt;SPAN&gt;What percent of subjects have hemophilia B (HTYPE)? &lt;/SPAN&gt;&lt;SPAN&gt;(5 points)&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="2"&gt;&lt;SPAN&gt;What is the latest date of registration (REG_DATE)?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;and unsure if there is a way to do this in one code rather than manually counting or calculating. For number one I calculated 5 by hand looking at the variables but stuck on the last two bc sas says the dataset is too large?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data= DEMOMED ;

&amp;nbsp;&amp;nbsp;&amp;nbsp;where htype = 'Hemophilia B';

run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 13:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determining-variable-counts/m-p/807017#M81744</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-04-10T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determining variable counts</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Determining-variable-counts/m-p/807018#M81745</link>
      <description>&lt;P&gt;To do the first with code, query DICTIONARY.COLUMNS in PROC SQL.&lt;/P&gt;
&lt;P&gt;For the second, try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=demomed;
tables htype;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For the third, see&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select max(reg_date)
from demomed;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 13:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Determining-variable-counts/m-p/807018#M81745</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-10T13:39:18Z</dc:date>
    </item>
  </channel>
</rss>

