<?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 filter data based on non-missing values in atleast one of variable in the list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-data-based-on-non-missing-values-in-atleast-one-of/m-p/795300#M255073</link>
    <description>&lt;P&gt;Use the double dash like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data two;
   set one;
   if cmiss(of CQ11NAM -- SMQ04NAM) &amp;lt; 8;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A nice article on creating variable lists is&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html" target="_self"&gt;6 easy ways to specify a list of variables in SAS&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 19:23:36 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-02-09T19:23:36Z</dc:date>
    <item>
      <title>How to filter data based on non-missing values in atleast one of variable in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-data-based-on-non-missing-values-in-atleast-one-of/m-p/795297#M255071</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;I need help in my pgm to filter records based on non-missing values. In my output I need records with non missing values&amp;nbsp; in at least in one variable(CQ11NAM -CQ14NAM)&amp;nbsp; (SMQ01nam-SMQ04NAM). I tried CMISS function and list all variables here. But in my actual data I have more than 60 variables. Please suggest. Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
input CQ11NAM $1 CQ12NAM $3 CQ13NAM $5 CQ14NAM $7 SMQ01NAM $9 SMQ02NAM $11 SMQ03NAM $13 SMQ04NAM $15 id 17;
DATALINES;
a               3
          a     2
                1
              d 5
        f       4
         ;
         
         data two;
         set one;
         if cmiss(of CQ11NAM-CQ14NAM,of SMQ01NAM-SMQ04NAM) lt 8 then flag='Y';
         if flag='Y';
         run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-data-based-on-non-missing-values-in-atleast-one-of/m-p/795297#M255071</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2022-02-09T19:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on non-missing values in atleast one of variable in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-data-based-on-non-missing-values-in-atleast-one-of/m-p/795300#M255073</link>
      <description>&lt;P&gt;Use the double dash like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data two;
   set one;
   if cmiss(of CQ11NAM -- SMQ04NAM) &amp;lt; 8;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A nice article on creating variable lists is&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html" target="_self"&gt;6 easy ways to specify a list of variables in SAS&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-data-based-on-non-missing-values-in-atleast-one-of/m-p/795300#M255073</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-02-09T19:23:36Z</dc:date>
    </item>
  </channel>
</rss>

