<?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: Using a WHERE Statement in ODS Output in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Using-a-WHERE-Statement-in-ODS-Output/m-p/702958#M25964</link>
    <description>&lt;PRE&gt;WHERE = (HypRelDeathInd=1 and &lt;FONT size="2"&gt;Not Missing(StateCd)&lt;/FONT&gt;)&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;WHERE = (HypRelDeathInd=1 and &lt;FONT size="2"&gt;StateCd is not missing&lt;/FONT&gt;)&lt;/PRE&gt;</description>
    <pubDate>Wed, 02 Dec 2020 03:50:05 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-12-02T03:50:05Z</dc:date>
    <item>
      <title>Using a WHERE Statement in ODS Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-a-WHERE-Statement-in-ODS-Output/m-p/702952#M25961</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi SAS communities,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I am attempting to use a WHERE= option in my ODS Output statement to pull in observations where variable HypRelDeathInd=1 and variable StateCd is a non-missing value. I've tried using a MISSING function by coding it as "WHERE Not Missing(StateCd)", but that yielded a syntax error in the log. Any other suggestions for how I can change my code to pull in non-missing values for my StateCd variable? Thank you in advance!&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Here is the code I've described:&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;PROC FREQ DATA = Work.Analysis2;
	TABLES HypRelDeathInd*StateCd / NOPERCENT NOROW CHISQ;
	ODS OUTPUT CrossTabFreqs = HypRslt.StatePercents (WHERE = (HypRelDeathInd=1 and WHERE &lt;FONT size="2"&gt;Not Missing(StateCd)&lt;/FONT&gt;));
	ODS OUTPUT ChiSq = HypRslt.ChiSqResults (WHERE = (Statistic='Chi- Square'));
	RUN;
	QUIT;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-a-WHERE-Statement-in-ODS-Output/m-p/702952#M25961</guid>
      <dc:creator>mvhoya</dc:creator>
      <dc:date>2020-12-10T15:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a WHERE Statement in ODS Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-a-WHERE-Statement-in-ODS-Output/m-p/702958#M25964</link>
      <description>&lt;PRE&gt;WHERE = (HypRelDeathInd=1 and &lt;FONT size="2"&gt;Not Missing(StateCd)&lt;/FONT&gt;)&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;WHERE = (HypRelDeathInd=1 and &lt;FONT size="2"&gt;StateCd is not missing&lt;/FONT&gt;)&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Dec 2020 03:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-a-WHERE-Statement-in-ODS-Output/m-p/702958#M25964</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-12-02T03:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using a WHERE Statement in ODS Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-a-WHERE-Statement-in-ODS-Output/m-p/703435#M26011</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using the ODS OUTPUT statement first then the PROC FREQ&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-a-WHERE-Statement-in-ODS-Output/m-p/703435#M26011</guid>
      <dc:creator>tmlee02</dc:creator>
      <dc:date>2020-12-10T15:14:59Z</dc:date>
    </item>
  </channel>
</rss>

