<?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: Filtering variables from a redcap dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Filtering-variables-from-a-redcap-dataset/m-p/772586#M31096</link>
    <description>Your syntax is incorrect - the log should be telling you that as well?&lt;BR /&gt;Something like this may work instead:&lt;BR /&gt;&lt;BR /&gt;WHERE endstatus in (1,2,3,4) and  endreason in (1,2,3,4);</description>
    <pubDate>Wed, 06 Oct 2021 21:59:30 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-10-06T21:59:30Z</dc:date>
    <item>
      <title>Filtering variables from a redcap dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Filtering-variables-from-a-redcap-dataset/m-p/772585#M31095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am working in a previously made SAS code that integrates redcap datasets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to filter out a certain answer (essentially trying to filter out variables of people who had completed the full timeline of a study vs all others who did not for various reasons for a report) to make it easier when it auto regerates into an Excel spreadsheet for a report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried doing some simple WHERE commands, some IF commands, etc. (like "WHERE endstatus=0 endreason=0"; run; and changing it to "WHERE endstatus=1,2,3,4 endreason=1,2,3,4"; run;) but it keeps bringing up the variables of "0" which is the complete variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 21:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Filtering-variables-from-a-redcap-dataset/m-p/772585#M31095</guid>
      <dc:creator>gloriarhyne</dc:creator>
      <dc:date>2021-10-06T21:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering variables from a redcap dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Filtering-variables-from-a-redcap-dataset/m-p/772586#M31096</link>
      <description>Your syntax is incorrect - the log should be telling you that as well?&lt;BR /&gt;Something like this may work instead:&lt;BR /&gt;&lt;BR /&gt;WHERE endstatus in (1,2,3,4) and  endreason in (1,2,3,4);</description>
      <pubDate>Wed, 06 Oct 2021 21:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Filtering-variables-from-a-redcap-dataset/m-p/772586#M31096</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-06T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering variables from a redcap dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Filtering-variables-from-a-redcap-dataset/m-p/772825#M31114</link>
      <description>&lt;P&gt;Go read the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1xbr9r0s9veq0n137iftzxq4g7e.htm" target="_self"&gt;WHERE statement documentation&lt;/A&gt;, there are several examples that will help explain the syntax&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 17:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Filtering-variables-from-a-redcap-dataset/m-p/772825#M31114</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2021-10-07T17:30:41Z</dc:date>
    </item>
  </channel>
</rss>

