<?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: checking participant count in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/checking-participant-count/m-p/485974#M21444</link>
    <description>&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 22:32:51 GMT</pubDate>
    <dc:creator>Angi</dc:creator>
    <dc:date>2018-08-10T22:32:51Z</dc:date>
    <item>
      <title>checking participant count</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/checking-participant-count/m-p/485634#M21423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dataset with program ID, total number of participants, and participant count for demographic sub-categories such as age, gender, and ethnicity.&amp;nbsp;Total participants should equal to the total for each sub-categories. Could you please let me know how I can check this using SAS 9.4? Is there a way to identify programs for which total participant number does not match the total of sub-categories?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variables for sub-category Age = Age04 Age511 Age1214 Age1517 Age1820 Age2124 Age2544 Age4564 Age65Plus AgeUnk&lt;/P&gt;
&lt;P&gt;Variables for sub-category Gender = Male Female GenderUnk&lt;/P&gt;
&lt;P&gt;Variables for sub-category Ethnicity = NotHispanic MexicanChicano PuertoRican Cuban OtherHisp HispUnk&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data&lt;/P&gt;
&lt;P&gt;data y.PARTICIPANTS(label='participants dataset written by Stat/Transfer Ver. 11.2.2106.0521&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; infile datalines dsd truncover;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; input ProgramID_:32. TotalParticipants:32. Age04:32. Age511:32. Age1214:32. Age1517:32. Age1820:32. Age2124:32. Age2544:32. Age4564:32. Age65Plus:32. AgeUnk:32. Male:32. Female:32. GenderUnk:32. NotHispanic:32. MexicanChicano:32. PuertoRican:32. Cuban:32. OtherHisp:32. HispUnk:32.;&lt;/P&gt;
&lt;P&gt;datalines4;&lt;/P&gt;
&lt;P&gt;1,22,0,13,9,0,0,0,0,0,0,0,12,10,0,19,0,0,0,0,3&lt;/P&gt;
&lt;P&gt;2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;4,6,0,0,0,5,1,0,0,0,0,0,2,4,0,5,0,0,0,1,0&lt;/P&gt;
&lt;P&gt;5,0,3,2,0,0,1,0,2,0,0,10,4,4,10,5,0,0,0,13,0&lt;/P&gt;
&lt;P&gt;6,0,2,1,0,0,4,0,1,1,0,0,5,4,0,7,2,0,0,0,0&lt;/P&gt;
&lt;P&gt;7,0,0,0,0,0,2,5,10,5,0,0,10,12,0,21,1,0,0,0,0&lt;/P&gt;
&lt;P&gt;8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;12,2,0,0,0,0,0,0,0,2,0,0,0,0,2,2,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;13,25,0,0,5,20,0,0,0,0,0,0,5,20,0,22,0,0,0,3,0&lt;/P&gt;
&lt;P&gt;14,24,0,0,5,19,0,0,0,0,0,0,12,12,0,23,0,0,0,1,0&lt;/P&gt;
&lt;P&gt;15,0,34,54,17,5,0,10,40,20,0,0,90,90,0,170,10,0,0,0,0&lt;/P&gt;
&lt;P&gt;16,0,0,5,20,40,10,10,30,30,10,0,75,80,0,150,5,0,0,0,0&lt;/P&gt;
&lt;P&gt;17,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;18,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;19,9,0,0,9,0,0,0,0,0,0,0,0,9,0,6,3,0,0,0,0&lt;/P&gt;
&lt;P&gt;20,150,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&lt;/P&gt;
&lt;P&gt;;;;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 00:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/checking-participant-count/m-p/485634#M21423</guid>
      <dc:creator>Angi</dc:creator>
      <dc:date>2018-08-10T00:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: checking participant count</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/checking-participant-count/m-p/485659#M21424</link>
      <description>&lt;P&gt;Adapt this to your needs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data _null_;
set participants;

ageParticipants = sum(of age:); 
if not ageParticipants =  TotalParticipants then
    put "AGE mismatch " programID= TotalParticipants= ageParticipants=;

genderParticipants = sum(of Male Female GenderUnk); 
if not genderParticipants =  TotalParticipants then
    put "GENDER mismatch " programID= TotalParticipants= genderParticipants=;

ethnicityParticipants = sum(of NotHispanic MexicanChicano PuertoRican Cuban OtherHisp HispUnk); 
if not ethnicityParticipants =  TotalParticipants then
    put "ETHNICITY mismatch " programID= TotalParticipants= ethnicityParticipants=;

run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 05:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/checking-participant-count/m-p/485659#M21424</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-08-10T05:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: checking participant count</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/checking-participant-count/m-p/485974#M21444</link>
      <description>&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 22:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/checking-participant-count/m-p/485974#M21444</guid>
      <dc:creator>Angi</dc:creator>
      <dc:date>2018-08-10T22:32:51Z</dc:date>
    </item>
  </channel>
</rss>

