<?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: making sure data was entered correctly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437763#M109073</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp; &amp;nbsp;that was hilarious. Made me laugh. Nice one! lol&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://communities.sas.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 20:31:03 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-02-15T20:31:03Z</dc:date>
    <item>
      <title>making sure data was entered correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437739#M109057</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="find one race.JPG" style="width: 287px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18631i526FC71CFBB5890D/image-size/large?v=v2&amp;amp;px=999" role="button" title="find one race.JPG" alt="find one race.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set with many race variables, and the variables look like the attached picture.&lt;/P&gt;&lt;P&gt;I want to check if one of them is 'Y', other race variables are 'N', and print out any observations with two or more 'Y' in different race variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write such code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 19:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437739#M109057</guid>
      <dc:creator>gsk</dc:creator>
      <dc:date>2018-02-15T19:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: making sure data was entered correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437759#M109071</link>
      <description>&lt;P&gt;If you want to write code, you need to know the names of the variables in your data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want someone here to write code, you have to tell us the names of the variables.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437759#M109071</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-15T20:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: making sure data was entered correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437763#M109073</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp; &amp;nbsp;that was hilarious. Made me laugh. Nice one! lol&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://communities.sas.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437763#M109073</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-02-15T20:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: making sure data was entered correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437764#M109074</link>
      <description>&lt;P&gt;Depending on your actual data usage Hispanic Ethnicity may not exclude any race and some systems with these variable allow for "more than one race" type data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if &amp;nbsp;countc(cats(h,w,b,a,ai,nhopi),'Y') &amp;gt;1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where h,w,b,a,ai and nhopi are the names of your race variables and if they are actually character variables.&lt;/P&gt;
&lt;P&gt;What this does is combine all of the variables into one string and then countc determines how many times the letter Y is in the result.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/making-sure-data-was-entered-correctly/m-p/437764#M109074</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-15T20:31:23Z</dc:date>
    </item>
  </channel>
</rss>

