<?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: Check if at least one variable in list is not missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606528#M176132</link>
    <description>Hi, this seems like a great idea, but my variables are not numeric. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
    <pubDate>Fri, 22 Nov 2019 18:05:24 GMT</pubDate>
    <dc:creator>corkee</dc:creator>
    <dc:date>2019-11-22T18:05:24Z</dc:date>
    <item>
      <title>Check if at least one variable in list is not missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606523#M176129</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a long list of variables, code_1-code_170. I know the cmiss and nmiss functions can help you check whether the entire list of variables is missing, but is it possible to check if at least one variable in the list is NOT missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if code_1 to code_4 are not missing but the rest are, then do...&lt;/P&gt;&lt;P&gt;If code_1 to code_169 are not missing but code_170 is, then do...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if there's an easy way to do this.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 17:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606523#M176129</guid>
      <dc:creator>corkee</dc:creator>
      <dc:date>2019-11-22T17:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check if at least one variable in list is not missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606527#M176131</link>
      <description>&lt;P&gt;have you tried COALESCE to determine the first non missing value in the list?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So basically,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if coalesce(of code_1-code_170);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 18:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606527#M176131</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-22T18:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check if at least one variable in list is not missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606528#M176132</link>
      <description>Hi, this seems like a great idea, but my variables are not numeric. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Fri, 22 Nov 2019 18:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606528#M176132</guid>
      <dc:creator>corkee</dc:creator>
      <dc:date>2019-11-22T18:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check if at least one variable in list is not missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606530#M176134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122635"&gt;@corkee&lt;/a&gt;&amp;nbsp; &amp;nbsp;use&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;COALESCEC&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;for character variables&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 18:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606530#M176134</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-22T18:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Check if at least one variable in list is not missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606531#M176135</link>
      <description>This worked perfectly. Thank you!</description>
      <pubDate>Fri, 22 Nov 2019 18:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Check-if-at-least-one-variable-in-list-is-not-missing/m-p/606531#M176135</guid>
      <dc:creator>corkee</dc:creator>
      <dc:date>2019-11-22T18:09:36Z</dc:date>
    </item>
  </channel>
</rss>

