<?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 create a table using proc sql based on meeting certain conditions for at least one wave in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-create-a-table-using-proc-sql-based-on-meeting-certain/m-p/864985#M1037</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table only as 
	select * from full 
	where id in (
		select id
		from full 
		where cmiss(a, b, c, d) = 0 )
	order by id, wave;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Mar 2023 20:41:25 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2023-03-17T20:41:25Z</dc:date>
    <item>
      <title>How to create a table using proc sql based on meeting certain conditions for at least one wave</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-create-a-table-using-proc-sql-based-on-meeting-certain/m-p/864983#M1036</link>
      <description>&lt;P&gt;I have a dataset from a longitudinal study where we collected data by waves. I want to create a new table. I want to keep participants (who are organized by id) who answered all questions (labeled a, b, c, and d) for at least one wave. This was my previous code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sql;
	create table only as select * from full group by id having 
		not (a eq . and b eq . and c eq . and d eq .)
		order by id, wave;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, with this code, I filter by keeping participants who answered &lt;EM&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;/EM&gt; of these questions by at least one wave. . How can I go about fixing this?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 20:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-create-a-table-using-proc-sql-based-on-meeting-certain/m-p/864983#M1036</guid>
      <dc:creator>statsgal</dc:creator>
      <dc:date>2023-03-17T20:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table using proc sql based on meeting certain conditions for at least one wave</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-create-a-table-using-proc-sql-based-on-meeting-certain/m-p/864985#M1037</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table only as 
	select * from full 
	where id in (
		select id
		from full 
		where cmiss(a, b, c, d) = 0 )
	order by id, wave;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Mar 2023 20:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-create-a-table-using-proc-sql-based-on-meeting-certain/m-p/864985#M1037</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2023-03-17T20:41:25Z</dc:date>
    </item>
  </channel>
</rss>

