<?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: How to quick check how many YES in the tables. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138677#M37203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way that takes a bit less code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input (x1-x7 y1-y7 z1-z6) ($);&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;Y N Y N Y N Y N Y N Y N Y N Y N Y N Y N&lt;/P&gt;&lt;P&gt;N N N Y Y N N N Y Y N N N N N N N N N N&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; total=countc(catt(of x1--z6),'Y');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 21:40:02 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2014-12-05T21:40:02Z</dc:date>
    <item>
      <title>How to quick check how many YES in the tables.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138674#M37200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with 20 column as flags, their value are Y or N, I want to check how many Y for each records, beside change all Y to 1 and N to 0 and then do the sum, is there any quick way to do sum or count how many Y for each record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 20:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138674#M37200</guid>
      <dc:creator>lovedieer</dc:creator>
      <dc:date>2014-12-05T20:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to quick check how many YES in the tables.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138675#M37201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;array q{*} q1-q20;&lt;/P&gt;&lt;P&gt;array q_num{20};&lt;/P&gt;&lt;P&gt;cnt_Y=0;&lt;/P&gt;&lt;P&gt;do i=1 to dim(q);&lt;/P&gt;&lt;P&gt;if q{i}='Y' then &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;q_num{i}=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else q_num{i}=0; &lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;do i=1 to dim(q);&lt;/P&gt;&lt;P&gt;if q{i}='Y' then &lt;SPAN style="font-size: 10pt;"&gt;cnt_Y+1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 20:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138675#M37201</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-12-05T20:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to quick check how many YES in the tables.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138676#M37202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. that works well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 21:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138676#M37202</guid>
      <dc:creator>lovedieer</dc:creator>
      <dc:date>2014-12-05T21:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to quick check how many YES in the tables.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138677#M37203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way that takes a bit less code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input (x1-x7 y1-y7 z1-z6) ($);&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;Y N Y N Y N Y N Y N Y N Y N Y N Y N Y N&lt;/P&gt;&lt;P&gt;N N N Y Y N N N Y Y N N N N N N N N N N&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; total=countc(catt(of x1--z6),'Y');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 21:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138677#M37203</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-05T21:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to quick check how many YES in the tables.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138678#M37204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool!. that's easy. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 22:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-quick-check-how-many-YES-in-the-tables/m-p/138678#M37204</guid>
      <dc:creator>lovedieer</dc:creator>
      <dc:date>2014-12-05T22:17:52Z</dc:date>
    </item>
  </channel>
</rss>

